Implement right-collision.

...partially. Known bug: Segfaults occasionally when moving right.
Doesn't happen every time. Don't know why. It seems to be while
accessing gTiles[i][j], but I don't see why that would ever not exist.

Lots of refactoring needs done. This will be split into a few methods.