function to draw a healthbar across the screen