Generates a random number, allows user 10 tries to guess number