An Analysis of Monte Carlo Tree Search