the game is expecting that the player would have typed in the xy coordinates of their move as two numbers without anything between them line first checks that the size of the string the player typed in is after thatit also checks that both move[ (the first character in the stringand move[ (the second character in the stringare strings that exist in digits to remember that the game board data structures have indexes from to not to the code prints to when the board is displayed in drawboard(because non-programmers are used to numbers beginning at instead of so to convert the strings in move[ and move[ to integerslines and subtract even if the player typed in correct movethe code still needs to check that the move is allowed by the rules of reversi this is done by isvalidmove(which is passed the game board data structurethe player' tileand the xy coordinates of the move if isvalidmove(returns falsethen line ' continue statement executes the execution will then go back to the beginning of the while loop and asks the player for valid move again otherwisethe player did type in valid move and the execution needs to break out of the while loop else print('that is not valid move type the digit ( - )then the digit ( - ' print('for example will be the top-right corner 'if the if statement' condition on line was falsethen the player didn' type in valid move lines and instructs them on how to correctly type in moves afterwardsthe execution moves back to the while statement on line because line isn' only the last line in the elseblockbut also the last line in the while-block return [xyfinallygetplayermove(returns two-item list with the xy coordinates of the player' valid move getting the computer' move def getcomputermove(boardcomputertile) given board and the computer' tiledetermine where to move and return that move as [xylist possiblemoves getvalidmoves(boardcomputertile