When you enter the gym take the warp spot.
Now take the bottom left warp spot.
Bottom left warp spot again.
Now take the top right.
Bottom left once again.
To get out; take the warp spot again.
Get the bottom right.
Bottom Right again.
You're out of the gym.