Some improvements on looping maps

When the player steps outside the map, he's moved to the other extreme.
This is still far from admisible. It should be stable but there're some visual bugs.
MoveUpRight has been fixed.