fixed a bunch of bugs and added some more debug functionality for observing collisions