public void paintComponent(Graphics g){
		super.paintComponent(g);
		if(client.shouldQuit())
			quit();
		if(game.hasStarted() && !quit){	
			preview.setShouldPaint(false);
			if(game.shouldRepaint())
				game.paint(background.createGraphics());
			g.drawImage(background, 0, 0, getWidth(), height, null);
			new SwingDelayedRepainter(this, 50);
		}
		else{
			g.setFont(SUIComponent.normal);
			g.setColor(SUIComponent.focused);
			String s = msg == null ? client.getMessage() : msg;
			g.drawString(s, getWidth()/2-g.getFontMetrics().stringWidth(s)/2, 7*getHeight()/8);
			repaint(50);
		}
		if(preview != null)
			preview.setMap(game.getMap());
	}