fix walking off the screen and not being right on the edge