cubeSolver.java