Update CollisionDetector.cpp