Added while loops to prevent crashing program if answer was not between 1-10.