Moved ChoiceInput to top of the while loop