Updated

Added collision detection.