public void runTournament(int botsPerGame, int gameRepeats)
	{
		for(Player p : allPlayers){
			p.resetStatistics();
		}
		numGamesCompleted = 0;
		
		if(participatingPlayers.size() < 2 || gameRepeats < 1){
			return;
		}
		if(botsPerGame > participatingPlayers.size()){
			botsPerGame = participatingPlayers.size();
		}
		else if(botsPerGame < 2){
			botsPerGame = 2;
		}
		
		long start = System.currentTimeMillis();
		if (combosVsPermutations)
			runAllCombos(botsPerGame, gameRepeats);
		else {
			for(int j = 0; j < gameRepeats; j++){
				runAllPermutations(botsPerGame, new LinkedList<Player>());
			}
		}
		long end = System.currentTimeMillis();
		//System.out.println("tournament time: " + (end - start) + "ms");
	}