Yes, it's because you did something different before the gorilla get in to the room, so the state of gorilla becomes different.
After reading everyone's comments, I really realize that the loop existence and the route distinction could be more clear.