You are making this more confusing for yourself by doing it like this.
I have added variables at the top of your program for game messages that are repeated - and also simplified the given cases for if the player wins, loses or ties.
I invite you to now make a point tracker that, at the start of each game says: You have "x" points.
And you gain a point for winning, lose a point for losing and nothing happens if you tie.
To add a while loop - simply use the "while" keyword, and anything within the loop will repeat while the given condition is true.
When performing a boolean search, boolean operators allow users to combine keywords with operators (or modifiers) such as AND, NOT and OR to further produce more relevant results.
The boolean operators AND and OR are used to include certain words and phrases during the search while the boolean operator NOT is used to exclude certain words and phrases.