C++ text-based rubik's cube solver