Fixed the player screen boundary issue