private boolean isLegalPosition(Position p) {
		if ((p != null) && (p.row >= 0) && (p.row < TicTacToeBoard.SIZE)
				&& (p.col >= 0) && (p.col < TicTacToeBoard.SIZE)) {
			return true;
		} else {
			return false;
		}
	}