This is 2d form of classical Rubix Cube.