Improved error messaging
Improved error messaging

Now clears error message immediately when user corrects Max Value input
to be an integer.

Also declared errorMessage string at top of function for better
readability, ease of change.

brsloan/hex-practice,brsloan/hex-practice