Added *very* basic collision detection.