implementing the health bar method drawHealthBar()