What could be the best approach to divide NxN grid into N groups having N tile each? What could be the well-known algorithm for this? I could not find a direct answer on the net. Max grid size will be 10x10. Below is an example for 5x5 grid. Thanks in advance. Regards