private void setValue(int row, int col, String val) { state[getAbsPosition(row, col)] = val; }
public override Object clone() { TicTacToeBoard newBoard = new TicTacToeBoard(); for (int i = 0; i < 3; i++) { for (int j = 0; j < 3; j++) { String s = getValue(i, j); newBoard.setValue(i, j, s); } } return(newBoard); }