Rewrote parts of the collision detection. Still need to further implement inter-entity collisions, and re-implement level transitions.