Snake Cube puzzle solver