drawboard(mainboardshowpoints(playertilecomputertilethe while loop that starts on line will keep looping each time the player or computer takes turn the execution will break out of this loop when the current game is over line has an if statement whose body has the code that runs if it is the player' turn (the else-block that starts on line has the code for the computer' turn first the board is displayed on the screen if hints mode is on (that isshowhints is true)then the board data structure needs to have period characters on every valid space the player could move the getboardwithvalidmoves(function does that it is passed game board data structure and returns copy that also contains period characters line passes this board to the drawboard(function if hints mode is offthen line passes mainboard to drawboard(after printing out the game board to the playeryou also want to print the current score by calling showpoints(on line move getplayermove(mainboardplayertilenextlet the player type in their move getplayermove(handles thisand its return value is two-item list of the xy coordinate of the player' move getplayermove(has already made sure that the move the player typed in is valid move handling the quit or hints commands if move ='quit'print('thanks for playing!'sys exit(terminate the program elif move ='hints'showhints not showhints continue elsemakemove(mainboardplayertilemove[ ]move[ ]if the player typed in the string 'quitfor their movethen getplayermove(would have returned the string 'quitin that caseline calls the sys exit(to terminate the program