I\'m having trouble with this function
I have a cell class, which as an x and y property. I\'m storing the grid of cells inside a single array.
my strategy is