simple collision detection.