updated collision detection

Collision detection on the x-axis has been improved.