Fix a design that player can move out of the screen