Added looping to NBMain (to support multiple num_training_games)