Added exception catching to stop it from breaking when you entered a wrong number or a letter