Fixed basic collision detection.