Solving the rubiks cube with confidence