As discussed, we don’t need a class SubGrid and ArrayList <SubGrid> sub at all; it would be possible to use ArrayList <GridCell> grid; for all of it!
class SubGrid
ArrayList <SubGrid> sub
ArrayList <GridCell> grid;
I just made a Sketch that does just this.
Chrisir