mina
When lives are gone, and you go to the first layout, prior to that try:
System - Reset Global variables
which should reset to their initial values.
Alternatively, specifically initialize your variables on the first layout - that way, they will always have the correct values on start of game.
Is that what you mean?
If not, please explain what you expect or want to happen, or post a .capx.