I think you forgot to reset the timer after each loss. Though if the current timer is supposed to be like that, you should rename it to "total time," and make a new variable just called "time," which resets every loss. Also you should display the "time" variable at the top.