turn whogoesfirst(print('the turn will go first 'gameisplaying true the whogoesfirst(function randomly decides who goes firstand returns either the string 'playeror the string 'computerand line tells the player who will go first the gameisplayer variable keeps track of whether the game is still being played or if someone has won or tied running the player' turn while gameisplayingline ' loop will keep going back and forth between the code for the player' turn and the computer' turnas long as gameisplaying is set to true if turn ='player'player' turn drawboard(theboardmove getplayermove(theboardmakemove(theboardplayerlettermovethe turn variable was originally set by the whogoesfirst(call on line it is set either to 'playeror 'computerif turn equals 'computer'then line ' condition is false and execution jumps to line line calls drawboard(and passes the theboard variable to print the tic tac toe board on the screen then the getplayermove(function lets the player type in their move (and also makes sure it is valid movethe makemove(function adds the player' or to theboard if iswinner(theboardplayerletter)drawboard(theboardprint('hoorayyou have won the game!'gameisplaying false now that the player has made their movethe computer should check if they have won the game with this move if the iswinner(function returns truethe if-block' code displays the winning board and prints message telling them they have won the gameisplaying variable is also set to false so that execution doesn' continue on to the computer' turn post questions to