so i dont quite remember the name of the place
but after you "Defeat" the second gym leader for the first time and you go into the mountain
the very top room, if you try to leave that room and go back into the mountain, when you have the gym leader with you, you will get trapped in a wall.