working on collision detection.