Check the screen boundary of the player