making the computer play against itself save the old reversi py file as aisim py by clicking on file save asand then entering aisim py for the file name and clicking ok this will create copy of our reversi source code as new file that you can make changes towhile leaving the original reversi game the same (you may want to play it againchange the following code in aisim py move getplayermove(mainboardplayertileto this (the change is in bold) move getcomputermove(mainboardplayertilenow run the program notice that the game still asks you if you want to be or obut it won' ask you to enter any moves when you replaced getplayermove()you no longer call any code that takes this input from the player you still press enter after the original computer' moves (because of the input('press enter to see the computer\' move 'on line )but the game plays itselflet' make some other changes to aisim py all of the functions you defined for reversi can stay the same but replace the entire main section of the program (line and onto look like the following code some of the code has remainedbut most of it has been altered but all of the lines before line are the same as in reversi in the last you can also avoid typing in the code by downloading the source from the url if you get errors after typing this code incompare the code you typed to the book' code with the online diff tool at aisim py print('welcome to reversi!' while true reset the board and game mainboard getnewboard( resetboard(mainboard if whogoesfirst(='player' turn ' else turn ' print('the turn will go first ' while true drawboard(mainboard