Exercise: improve number guessing game