protected void paintComponent(Graphics g) {
		super.paintComponent(g);
		if (ziel != null && player != null) {
			Rectangle zielRec = new Rectangle((int) ziel.getX() - 10,
					(int) ziel.getY() + 25, 20, 20);
			Rectangle playerRec = new Rectangle(spieler.playerx + 25,
					spieler.playery + 100, 25, 20);
			g.drawRect(zielRec.x, zielRec.y, zielRec.width, zielRec.height);
			g.drawRect(playerRec.x, playerRec.y, playerRec.width,
					playerRec.height);
			if (collisionList != null) {
				for (int i = 0; i < collisionList.size(); i++) {
					g.drawRect(collisionList.get(i).x, collisionList.get(i).y,
							collisionList.get(i).getSize().width, collisionList
									.get(i).getSize().height);
				}
			}
			g.drawLine(zielRec.x, zielRec.y, playerRec.x, playerRec.y);
			if (playerRec.intersects(zielRec)) {
				run = false;
			}
			if (run) {
				calculate(3);
			}
		}
		if (textureList.size() != 0) {
			for (int i = 0; i < textureList.size(); i++) {
				g.drawImage(textureList.get(i).getImage(), textureList.get(i)
						.getLocation().x, textureList.get(i).getLocation().y,
						textureList.get(i).getWidth(), textureList.get(i)
								.getHeight(), this);
			}
		}
		if (spieler != null) {
			Graphics2D g2d = (Graphics2D) g;
			g2d.rotate(Math.toRadians(spieler.winkel - 90),
					spieler.playerx + 40, spieler.playery + 110);
			g2d.drawImage(spieler.getImage(), spieler.playerx - 10,
					spieler.playery + 60, 100, 100, this);
		}
		Toolkit.getDefaultToolkit().sync();
		g.dispose();
	}