Reset when hit the border of the game