so what exactly should i change in the sketch?
Declare the new variables at the top of the program before anything else then turn my psuedo-code into real code.
Did you write the code that you posted ? If so, then you will know how to write an if statement to test whether a variable is true or false to determine whether a section of code should be run or not because it has ifs in it already.
One thing to look out for is if case 2 is true before case 1 and the case 2 code runs then it will not run again even after case 1 has been subsequently run when using the logic in my code. After each case has run you will need to make sure that the next case can run by setting its 'flag' variable to false.