It seems that I can't make the "Mario" Life system to work.
The way I made this is to have a RPG like HP and when it runs out to 0, it subtracts the lives variable to 2.
It wasn't till the end I found out from my friend that restart layout actually restarts the variables as well, so I am not sure on how to spawn the player keeping the variables while the enemy and everything else resets.
Tried searching around with no solutions to this.