movePlayer, there is an unknown bug in generateMap