Update solveCube to run ErrorCheck