fixed issue where player would slide across the screen