Rubik's Cube solver, implementing Kociemba's Two-Phase Algorithm in JS