How to open level?

I have a game. it has 3 levels. the main map, the lose map, and the victory map. but after I built the game, when my character dies (<=0 health), the game just starts over, although I have clearly stated that I need to load the lose menu.And when I reach the finish line, too, instead of the desired level, the game starts all over again.

You need this