old_contents: from scriptographer_desk import *
  
  class Carpenter(Scriptographer):
  
      def render_board(self, raw_board):
          stringified_board = self.stringify_board(raw_board)
          rendered_board = self.construct_board(stringified_board)
          return rendered_board
          
      def stringify_board(self, board):
          fresh_board = []
          for i in range(0, len(board)):
              if board[i] == 0:
                  fresh_board.append(self.number_square(i))
              elif board[i] == 1:
                  fresh_board.append(self.cross)
              elif board[i] == 10:
                  fresh_board.append(self.nought)
          return fresh_board
  
      def number_square(self, number):
          return self.pre_num + str(i+1) + self.post_num
  
      def construct_board(self, board):
          rack = self.assemble_rack(board)
          rows = self.assemble_rows(board)
          constructed_board = self.nl + rack.join(rows) + self.nl
          return constructed_board
  
      def assemble_rack(self, board):
          board_size = self.get_board_size(board)
          shelves = []
          for i in range(0, board_size):
              shelves.append(self.plank)
          rack = self.nl + self.corner.join(shelves) + self.nl
          return rack
  
      def assemble_rows(self, board):
          row_length = self.get_board_size(board)
          rows = []
          for i in range(0, len(board), row_length):
              proto_row = self.build_proto_row(board, i)
              completed_row = self.wall.join(proto_row)
              rows.append(completed_row)
          return rows
  
      def build_proto_row(self, board, start_of_row):
          row_length = self.get_board_size(board)
          end_of_row = start_of_row + row_length
          proto_row = []
          for i in range(start_of_row, end_of_row):
              proto_row.append(board[i])
          return proto_row
  
new_contents: from scriptographer_desk import *
  
  class Carpenter(Scriptographer):
  
      def render_board(self, raw_board):
          stringified_board = self.stringify_board(raw_board)
          rendered_board = self.construct_board(stringified_board)
          return rendered_board
          
      def stringify_board(self, board):
          fresh_board = []
          for i in range(0, len(board)):
              if board[i] == 0:
                  fresh_board.append(self.number_square(i))
              elif board[i] == 1:
                  fresh_board.append(self.cross)
              elif board[i] == 10:
                  fresh_board.append(self.nought)
          return fresh_board
  
      def number_square(self, number):
          return self.pre_num + str(number+1) + self.post_num
  
      def construct_board(self, board):
          rack = self.assemble_rack(board)
          rows = self.assemble_rows(board)
          constructed_board = self.nl + rack.join(rows) + self.nl
          return constructed_board
  
      def assemble_rack(self, board):
          board_size = self.get_board_size(board)
          shelves = []
          for i in range(0, board_size):
              shelves.append(self.plank)
          rack = self.nl + self.corner.join(shelves) + self.nl
          return rack
  
      def assemble_rows(self, board):
          row_length = self.get_board_size(board)
          rows = []
          for i in range(0, len(board), row_length):
              proto_row = self.build_proto_row(board, i)
              completed_row = self.wall.join(proto_row)
              rows.append(completed_row)
          return rows
  
      def build_proto_row(self, board, start_of_row):
          row_length = self.get_board_size(board)
          end_of_row = start_of_row + row_length
          proto_row = []
          for i in range(start_of_row, end_of_row):
              proto_row.append(board[i])
          return proto_row
  
subject: fix misplaced variable in number_square