My attempt at the guess the number game.