Fixed a few minor things with collision.

This should complete the first parts of the sprite engine.