Update CubeCollisionDetector.java