You can simply make a data table with level names, with last level name is main menu.
On each level completion, get table row → currentlevelindex+1.
You can have index, level name as seperate.
If you don’t want to use data table you can make a TMAP variable with index(int), mapname