Loop if the user puts a string instead of a number

Fixing #322