fix the code so it ends before giving more hitpoints if no lives