The knowledge that the player gets 3 guesses is encoded in several different places in this program. How could we DRY this up, perhaps by introducing a variable?