Before while
Swapped to For loop

Amount of grid options can now be changed. 500 grids = 20,000 lines of
code...