make duplicate of the board list and return it the duplicate dupeboard [for in boarddupeboard append(ireturn dupeboard the getboardcopy(function is here so that you can easily make copy of given -string list that represents tic tac toe board in the game there are times that you'll want the ai algorithm to make temporary modifications to temporary copy of the board without changing the original board in that casecall this function to make copy of the board' list the new list is created on line with the blank list brackets [but the list stored in dupeboard on line is just an empty list the for loop will iterate over the board parameterappending copy of the string values in the original board to the duplicate board finallyafter the loopdupeboard is returned the getboardcopy(function builds up copy of the original board and returning reference to this new board in dupeboardand not the original one in board checking if space on the board is free def isspacefree(boardmove) return true if the passed move is free on the passed board return board[move=this is simple function thatgiven tic tac toe board and possible movewill return if that move is available or not remember that free spaces on the board lists are marked as single space string if the item at the space' index is not equal tothen the space is taken letting the player enter their move def getplayermove(board) let the player type in their move move while move not in ' split(or not isspacefree(boardint(move)) print('what is your next move( - )' move input( return int(move