void NextLevel(string input)
{
level = level + 1;
AskForPassword();
}
put this in your switch case in reward screen:-
Terminal.WriteLine(“Press 2 to try next level”);
currentScreen = Screen.MainMenu;
if (input == “2”) //for case 1, for case 2 input has to be 3 as the next level will be 3.
{
NextLevel(input);
currentScreen = Screen.Password;
}