I added the second loop to solve the problem of what happens when a player leaves a building. Previously, the code would put the player back in space, but the player should instead still be in the city. This was my solution, though I'm not opposed to doing it a different way. The way I wrote it loops back to the top of the first loop when a player leaves a building, which makes it feel like the player is once again entering the city (like walking into the city from a building).