Update Test.java

Added a change of boolean continueOn after every action. Same problem as before: the loops run on forever. Once I choose one action, I can't switch to any other.