call to print string before call to input()you can do the same thing by passing the string to print to input(after the player has looked at the board and pressed enterline calls getcomputermove(to get the xy coordinates of the computer' next move these coordinates are stored in variables and using multiple assignment finallypass and yalong with the game board data structure and the computer' tileto the makemove(function this places the computer' tile on the game board in mainboard to reflect the computer' move line ' call to getcomputermove(got the computer' move (and stored it in variables and ythe call to makemove(on line makes the move on the board if getvalidmoves(mainboardplayertile=[]break elseturn 'playerlines to are similar to lines to after the computer has made its moveline checks if there exist any valid moves the human player can make if getvalidmoves(returns an empty listthen there are no valid moves that means the game is overand line breaks out of the while loop otherwisethere' at least one possible move the player should make the turn variable is to 'playerthere is no more code in the while-block after line so execution loops back to the while statement on line drawing everything on the screen display the final score drawboard(mainboard scores getscoreofboard(mainboard print(' scored % points scored % points (scores[' ']scores[' ']) if scores[playertilescores[computertile] print('you beat the computer by % pointscongratulations!(scores[playertilescores[computertile]) elif scores[playertilescores[computertile] print('you lost the computer beat you by % points (scores[computertilescores[playertile]) else print('the game was tie!'