Create CollisionDetector.java