functionality for 16x16 and 24x24 grids.