Collide

Added collision detection and handling.