Adds health bar logic.