function createUpdatedGrid(oldGrid, turn, cell) {
  // create a new grid from the old grid so we're not mutating state
  const newGrid = createGrid(oldGrid);
  newGrid[cell.column][cell.row].usedAtTurn = turn;
  return newGrid;
}
/**
 * Create a new grid with a new disc in the selected column.
 *
 * @param oldGrid
 * @param turn
 * @param cell
 */
Create a new grid with a new disc in the selected column.
Create a new grid with a new disc in the selected column .
function createUpdatedGrid(oldGrid, turn, cell) {
  const newGrid = createGrid(oldGrid);
  newGrid[cell.column][cell.row].usedAtTurn = turn;
  return newGrid;
}
function createUpdatedGrid ( oldGrid , turn , cell ) { const newGrid = createGrid ( oldGrid ) ; newGrid [ cell . column ] [ cell . row ] . usedAtTurn = turn ; return newGrid ; }
Create a new grid with a new disc in the selected column.
Create a new grid with a new disc in the selected column .
// create a new grid from the old grid so we're not mutating state