Changed grid array from array of arrays to array of cells