- prevent player to go out of screen boundaries