public void createNewGame(Playmode playmode, User[] user) throws IndexOutOfBoundsException{
		int i = 0;
		for (Team team : playmode.getTeams()) {
			while(team.getCurrentPlayerCount() < team.getTeamSize()){
				team.addUser(user[i]);
				i++;
			}
		}
		Game game = new Game(playmode);
		int matchType = Match.TEST;
		if(playmode.getTitel().equals("FFA")){
			matchType = Match.FFA;
		}else if(playmode.getTitel().equals("TEAM")){
			matchType = Match.TEAM;
		}else if(playmode.getTitel().equals("UNDERDOG")){
			matchType = Match.UNDERDOG;
		}else if(playmode.getTitel().equals("Test")){
			matchType = Match.TEST;
		}
		// TODO find a way to add new games according to the playmode
		game.addMatch(new SoccerMatch(matchType, playmode));
		game.addMatch(new HorseRaceMatch(matchType, playmode));
		ServerDataBaseManager sDBM = new ServerDataBaseManager();
		sDBM.createNewGame(game);
		gameIDtoGame.put(game.getGID(), game);
		for (int j = 0; j < user.length; j++) {
			userIDtoNewGame.put(user[j].getID(), game);
		}
	}