private Move getMinimaxMove(StateTree tree) throws Exception
	{
		TicTacToeBoard state = tree.getState();
		
		if (state.getTurn() == MIN_PLAYER) {
			return this.getMinMove(tree);
		} else if (state.getTurn() == MAX_PLAYER) {
			return this.getMaxMove(tree);
		} else {
			throw new Exception("Invalid player turn"); 
		}
	}