Cleaned up collision detection, minified JS code.