Fixing tile map collision bugs.

Moral: don't code when tired.