added random number generator, now gives 10 guesses