Create an inventory menu with items that represent levels. Give each item a unique name. Make a dict that has the item names as keys and the level start locations as values. When the items are clicked, get the item name, convert it to string, read the dict entry, then teleport the player there and close the inventory.