Here, you test for a win but don't do anything with it. You will have to set some boolean to True or False, based upon number of guesses, or when a player wins, which would end the game.
if '*' not in latestStr: #Finished with success # Display success message, check for 1 more round msg1="Congrts! The word is: "+word msg2="To continue the game, press ENTER" else: # Current alphabet is not in original word missedLetters += (current+'')#Add letter to missed count += 1 #Increment number of attempts ## or ----------------------------------------------- if count < 7 and not word_guessed(): msg1="Guess a word: "+ latestStr msg2="Missed letter: "+ missedLetters