private void drawLifeBar(Graphics2D g) {
		Graphics2D g2d = (Graphics2D) g.create();
		int percentGood = (health * 100) / maxHealth;
		int percentBad = -(percentGood - 100);
		g2d.setColor(Color.GREEN);
		g2d.fillRect((int) getX() - 5, (int) getY() - 5, percentGood / 5, 3);
		g2d.setColor(Color.RED);
		g2d.fillRect((int) (getX() - 5) + (percentGood / 5), (int) getY() - 5,
				percentBad / 5, 3);
		if (maxSpeed > getSpeed()) {
			g2d.setColor(Color.blue);
			g2d.drawRect((int) getX() - 5, (int) getY() - 5, 20, 3);
		}
		g2d.dispose();
	}