keeps player on screen