replace x,y coordinates with CellState