function findCellFromColumn(grid, column) {
  for (let row = 0; row < GRID_ROWS; row++) {
    if (grid[column][row].usedAtTurn === -1) {
      return {
        column,
        row
      };
    }
  }

  return null;
}
/**
 * Find the next available cell in the column specified.
 *
 * @param grid
 * @param column
 */
Find the next available cell in the column specified.
@param grid
@param column
Find the next available cell in the column specified . @param grid @param column
function findCellFromColumn(grid, column) {
  for (let row = 0; row < GRID_ROWS; row++) {
    if (grid[column][row].usedAtTurn === -1) {
      return {
        column,
        row
      };
    }
  }
  return null;
}
function findCellFromColumn ( grid , column ) { for ( let row = 0 ; row < GRID_ROWS ; row ++ ) { if ( grid [ column ] [ row ] . usedAtTurn === - 1 ) { return { column , row } ; } } return null ; }
Find the next available cell in the column specified.
Find the next available cell in the column specified .