Update CollisionDetector.java