Where is the loop?
The player can't die, everytime the player die, he returns to the starting position thus the loop :D