public void paintComponent(Graphics g) {
		Log.debug("Painting the canvas.");
		// Let the swing framework do it's drawing of the JPanel first.
		super.paintComponent(g);
		// The following two commands draw the background:
		// Set the color of the "pen". This color will be used in the following
		// drawing commands.

		// Draw a rectangle with the size of the canvas. Therefore, this draws a
		// "background".
			g.drawRect(0, 0, 2000, 1100);
			g.setColor(Color.red);
			g.fillRect(0, 0, 2000, 1100);
			g.drawRect(500, 500, 100, 200);
			g.setColor(Color.white);
			g.fillRect(820, 80, 220, 800);
			g.fillRect(532, 370, 800, 220);
			g.setColor(Color.black);
			for(RenderObject object: this.game.getObjectsToRender())
			{
				object.render(g);
			}
		
		long now = System.currentTimeMillis()/1000;
		if (now > aktuelleSekunde){
			aktuelleSekunde = now;
			lastFPS = Counter;
			Counter = 0;
		}else {
			Counter = Counter+1;
		}
		g.drawString(""+lastFPS, 50, 50);
		// TODO: Add more drawing commands here.
	}