//crux of class, determines UI based on varable Stage public void NextScreen(int stageChange) { print("here " + stageChange); //sees if stage was changed stage += stageChange; if (stageChange == 0 && stage > 2) { wrongPassword--; if (wrongPassword == 0) { stage++; wrongPassword = StaticVariables.passwordAttempts; } } switch (stage) { //re-submit CORRECTLY the assigned passwords case 0: case 1: case 2: view.ShowPasswordCode(true); view.EnterPassword(example[stage], GetPassword(example[stage]), true, true, -1); log.StartTimer(); break; //Have 3 tries to get correct password; case 3: case 4: case 5: view.ShowPasswordCode(false); view.EnterPassword(example[stage - 3], GetPassword(example[stage - 3]), true, true, wrongPassword); log.StartTimer(); break; //end game and export to Excel File case 6: view.TextScreen("You have completed the Password Entry. \nPlease fill out the associated Survey"); log.ExportLog(); break; default: print("hit default and I shouldnt be here"); break; } }