public void UpdateGrid(List <Cell> newCells) { CellGrid.Clear(); foreach (Cell cell in newCells) { CellGrid.Add(cell); } }