Various bug fixes

Fixed the sliding after collision bug.
Fixed the issue where occasionally enemies would snipe the player across
the whole length of the map.