Adding MonteCarloPlayer test and some refactoring.