now the player will not go away from the screen