Improved collision detection algorithm.
Slow collision detection working.