functional but simple guessing game