added loop to run until a character’s life is less than 1