oscore + return {' ':xscore' ':oscore def enterplayertile() lets the player type which tile they want to be returns list with the player' tile as the first itemand the computer' tile as the second tile ' while not (tile ='xor tile =' ') print('do you want to be or ?' tile input(upper( the first element in the list is the player' tilethe second is the computer' tile if tile =' ' return [' '' ' else return [' '' ' def whogoesfirst() randomly choose the player who goes first if random randint( = return 'computer else return 'player def playagain() this function returns true if the player wants to play againotherwise it returns false print('do you want to play again(yes or no)' return input(lower(startswith(' ' def makemove(boardtilexstartystart) place the tile on the board at xstartystartand flip any of the opponent' pieces returns false if this is an invalid movetrue if it is valid tilestoflip isvalidmove(boardtilexstartystart if tilestoflip =false return false board[xstart][ystarttile for xy in tilestoflip