How to solve a rubric cube in c#