Cleaning up collisionDetection and other collision stuff.