Made the CollisionDetector object -> a pointer