I noticed that when I tried to go back to the main menu while I was being prompted to enter a password, that I would go back to the main menu but it would still be stuck on the password enum. To fix it I added the enum to the menu case like this :
if (input == "menu")
{
currentScreen = Screen.MainMenu; // this is what I added
level = 0;
ShowMainMenu();
}
Now when I escape to the main menu for whatever reason, the enum updates correctly. It may be addressed later in the course, but I haven’t gone much further yet.