docs: def liveNeighbours(self, z, y, x):
          """Returns the number of live neighbours."""
          count = 0
  
          for oz, oy, ox in self.offsets:
              cz, cy, cx = z + oz, y + oy, x + ox
              if cz >= self.depth:
                  cz = 0
              if cy >= self.height:
                  cy = 0
              if cx >= self.width:
                  cx = 0
              count += self.table[cz][cy][cx]
  
          # if self.toroidal:
          #     if y == 0:
          #         if self.table[self.height - 1][x]:
          #             count = count + 1
          #     if y == self.height - 1:
          #         if self.table[0][x]:
          #             count = count + 1
          #     if x == 0:
          #         if self.table[y][self.width - 1]:
          #             count = count + 1
          #     if x == self.width - 1:
          #         if self.table[y][0]:
          #             count = count + 1
  
          return count