few changes

the player will not teleported if he is already on the selected map.
Only the direction will change if he is on the side of the map