Final version #3 of secret number game (slight refactor)