Refactored healthbar by making the it using the progressbar class in the new package