Collision detection now works.