UCT tree search algorithm implemented in Java