othertile ' xy getcomputermove(mainboard' ' makemove(mainboard' 'xy else ' turn othertile ' xy getcomputermove(mainboard' ' makemove(mainboard' 'xy if getvalidmoves(mainboardothertile=[] break else turn othertile display the final score scores getscoreofboard(mainboard print(' scored % points scored % points (scores[' ']scores[' ']) if scores[' 'scores[' '] xwins + elif scores[' 'scores[' '] owins + else ties + numgames float(numgames xpercent round(((xwins numgames ) opercent round(((owins numgames ) tiepercent round(((ties numgames ) print(' wins % games (% %%) wins % games (% %%)ties for % games (% %%of % games total (xwinsxpercentowinsopercenttiestiepercentnumgames)how the aisim py code works you have added the variables xwinsowinsand ties to lines to to keep track of how many times winso winsand when they tie lines to increment these variables at the end of each gamebefore it loops back to start new game you have removed most of the print(function calls from the programas well as the calls to drawboard(when you run aisim pyit asks you how many games you want to run now that you've taken out the call to drawboard(and replace the while trueloop with for game in range(numgames)loopyou can run number of games without stopping for the user to type anything here is sample run of ten of computer vs computer reversi gamespost questions to