Made test for collision detection.

Need to separate collision detection for each side.