random number guessing game - python using functions