fixed player movement to disalow moving off the right edge of the screen