Fixed a bug where the player could walk off the corners of the screen.