limit player position within screen