public MCTS_Node TreePolicy(MCTS_Node node) { MCTS_Node current = node; while (isNonTerminal(current)) { if (!current.isFullyExpanded()) { return(Expand(current)); } else { //Debug.Log("Node fully expanded"); MCTS_Node b = BestChild(current, C); if (b == null) { break; } else { current = b; } } } return(current); }