private void displayHealth(MainMenu menu) {
		// If the menu is up, will not render the bars.
		if (menu.MenuUp())
			return;
		
		int barWidth=275;
		int subDivisionLength = barWidth/4;
		
		// This is setting the color of the life bar.
		if (((double)player.getStats().getCurrentHP()/(double)player.getStats().getMaxHP()) <= 0.25) {
			g.setColor(Color.red);
		} else if (((double)player.getStats().getCurrentHP()/(double)player.getStats().getMaxHP()) <= 0.5) {
			g.setColor(Color.yellow);
		} else {
			g.setColor(Color.green);
		}

		// This is drawing the life bar and MP bar.
		g.fillRect(31, 531, (int)(((double)player.getStats().getCurrentHP()/(double)player.getStats().getMaxHP()) * barWidth), 25);
		
		g.setColor(Color.black);
		// Lines for the HP
		for(int x=(30+subDivisionLength);x<(30+barWidth-subDivisionLength);x+=subDivisionLength)
		{
			g.drawLine(x, 546, x, 554);
		}


		// This will change the text color based on the lifebar changing color.
		if (((double)player.getStats().getCurrentHP()/(double)player.getStats().getMaxHP()) <= 0.25) {
			g.setColor(Color.white);
		} else if (((double)player.getStats().getCurrentHP()/(double)player.getStats().getMaxHP()) <= 0.5) {
			g.setColor(Color.black);
		} else {
			g.setColor(Color.white);
		}

		
		// This will display the HP in the life bar as an int.
		g.drawString(("HP " + player.getStats().getCurrentHP() + "/" + player.getStats().getMaxHP()), 40, 550);

		// Setting the color of the MP bar.
		g.setColor(Color.blue);
		g.fillRect(31, 582, (int)(((double)player.getStats().getCurrentMP()/(double)player.getStats().getMaxMP()) * barWidth), 25);

		g.setColor(Color.black);
		// Lines for the MP
		for(int x=(30+subDivisionLength);x<(30+barWidth-subDivisionLength);x+=subDivisionLength)
		{
			g.drawLine(x, 596, x, 604);
		}
		
		
		// Color that is set for the words being displayed.
		g.setColor(Color.white);
		g.drawString(("MP " + player.getStats().getCurrentMP() + "/" + player.getStats().getMaxMP()), 40, 600);

		// Draws the black borders
		g.setColor(Color.black);
		g.drawRect(30, 530, barWidth, 26);
		g.drawRect(30, 581, barWidth, 26);


	}