Some corrections on collision detection.

Is not right.