help Array Sprite Shift

ex) Chuzzle Game

int block[8][8];

view view
6 | 1 2 3 4 5 6 | 1 left touchMove……

1 | 2 3 4 5 6 1 | 2 left touchMove……

2 | 3 4 5 6 1 2 | 3 ….

help~! T_T

I don’t know what’s your meaning. Your question is about data structure, algorithm or other?