Update CollisionDetector.js