Created LifeCounter class and glued it to the UI.