Added more collision detection code, and fleshed out more of the collider 'collide' function.
Changed part of main to work with the new entity API.
Added debugging CSS.