Extracted method for drawing health bar