ending or restarting the game once the player has won or lostask them if they want to play again with new secret word if the player doesn' want to play againthe program will end if the program doesn' endit thinks up new secret word this is shown in figure - figure - the flow chart branches when asking the player to play again