Collision detection now uses bitgrid. Now I need to clean up the implementation.