Add the for loops back into createGrid