when your player-character is moving to the edge of the screen you must walk towards a wall to correct the position