old_contents: class Player(object):
      def move(self, board):
          board[4] = "spam"
          return board
  
      def get_legal_moves(self, board):
          legal_moves = []
          for i in range(0, len(board)):
              if board[i] == 0:
                  legal_moves.append(i)
          return legal_moves
  
  class Human(Player):
      def move(self, board):
          square = raw_input("Which square do you choose? ")
          board[square] = 10
          return board
  
  class Computer(Player):
      def move(self, board):
          for i in range(0, len(board)):
              if board[i] == 0:
                  board[i] = 1
                  break
          return board
                     
  
new_contents: class Player(object):
      def move(self, board):
          board[4] = "spam"
          return board
  
      def get_legal_moves(self, board):
          legal_moves = []
          for i in range(0, len(board)):
              if board[i] == 0:
                  legal_moves.append(i)
          return legal_moves
  
  class Human(Player):
      def move(self, board):
          square = raw_input("Which square do you choose? ")
          board[square] = 10
          return board
  
  class Computer(Player):
      def move(self, board):
          options = self.get_legal_moves(board)
          board[options[0]] = 1
          return board
                     
  
subject: refactor mock computer player move