Basic UCT implementation