public Match(int matchType, Playmode playmode){
		this.gameID = -1;
		this.userID = -1;
		this.matchType = matchType;
		this.playmode = playmode;
		this.userIDtoMatchLoaded = new HashMap<>();
		this.userIDtoClientEvents = new HashMap<>();
		this.running = false;
		this.playing = false;
		this.showingCountDown = false;
		this.showingGameInfo = false;
		this.showingAddingScore = false;
		this.showingOnlyScore = true;
		this.showingGameInfoCounter = 0;
		this.showingGameInfoMax = 100;
		this.showingScoreCounter = 0;
		this.showingScoreMax = 150;
		this.over = false;
		this.addKeyListener(this);
		for (Team team : playmode.getTeams()) {
			for (User user : team.getUser()) {
				userIDtoMatchLoaded.put(user.getID(), false);
				userIDtoClientEvents.put(user.getID(), new ArrayList<Integer>());
			}
		}
		super.setSize(720, 405);
		offscreen = new BufferedImage(getWidth(), getHeight(), BufferedImage.TYPE_INT_RGB);
		offscreenGraphics = offscreen.getGraphics();
		gameObjects = new HashMap<>();
	}