public void paintComponent(Graphics g) {
		super.paintComponent(g);
		if (!gameRunning && !deathScreen) {
			Main.background.paintComponent(g);
			Main.menu.paintComponent(g);
		}
		if (gameRunning && deathScreen) {
			g.setColor(Color.red);
			g.setFont(new Font("TimesRoman", Font.PLAIN, 40));
			g.drawImage(Main.background.gameOver,
					Main.mainFrame.getWidth() / 2 - 200,
					Main.mainFrame.getHeight() / 2 - 200, 400, 400, null);
			g.drawString("Score: " + String.valueOf(Main.score),
					Main.mainFrame.getWidth() / 2 - 200,
					Main.mainFrame.getHeight() / 2 + 250);
			if (gameOverTimer >= 200) {
				soundOfDeath.stop();
				Main.sound.loop();
				Main.score = 0;
				Main.player.disabled = true;
				Main.menu.init(Main.mainFrame.getWidth() / 2 - 50,
						Main.mainFrame.getHeight() / 2,
						Main.mainFrame.getHeight() / 2 + 60);
				gameRunning = false;
				Main.player = new Player();
				Main.player.setY(Main.mainFrame.getHeight() / 2);
				Main.enemies = new ArrayList<Enemy>();
				Main.bonuses = new ArrayList<Bonus>();
				Main.background.init(Main.mainFrame.getWidth(),
						Main.mainFrame.getHeight());
				Main.background.paintComponent(g);
				Main.menu.paintComponent(g);
				deathScreen = false;
				gameOverTimer = 0;
			}
		}
		if (gameRunning && !deathScreen) {
			Main.background.paintComponent(g);
			Main.player.paintComponent(g);
			g.setColor(Color.red);
			g.setFont(new Font("TimesRoman", Font.PLAIN, 40));
			for (int i = 0; i < Main.enemies.size(); i++) {
				Main.enemies.get(i).paintComponent(g);
			}
			for (int i = 0; i < Main.bonuses.size(); i++) {
				Main.bonuses.get(i).paintComponent(g);
			}
			g.drawString("Score: " + String.valueOf(Main.score), 10, 50);
		}
	}