stopped player from going off the bounds of the screen