beginning UCT algorithm