Game of reordering square by shifting its rows and columns