Creating a life indicator bar