Coding a Guessing Game with Three Tries

Here, I try to code a guessing game, where the user only has three tries to guess the secret word, or they lose. The photo below is the blue-print.