retrain the player movement inside the screen