Add IsCollisionDetected method, which is intended to be the only public method of the CollisionDetector class