Implementing a linear health bar