public synchronized void addGame(GameStat game){
		if(game.incomplete){
			ArrayList<Long> incGames = ((ArrayList<Long>)ConfigVars.get(ConfigVars.INCOMPLETE_GAMES));
			if(!incGames.contains(game.gameId))
				incGames.add(game.gameId);
		}
		if(games == null)
			games = new ArrayList<GameStat>();
		games.add(game);
		ArrayFunctions.sort(games);
		if(!GameStat.getGames().contains(game)){
			ArrayList<GameStat> allGames = GameStat.getGames();
			allGames.add(game);
			ArrayFunctions.sort(allGames);
		}
	}