completed the first version of the secret number game