local cells

local function cellsave(cell)
    if cells == nil then
       cells = {}
       table.insert(cells,cell)
       print("add first", cell)    
    else
      for i = 1, #cells do
        print("already", cells[i])
      end  
      if not cells[cell] == true then
        table.insert(cells,cell)
        print("add table", cell)
      end
    end
    return cells
end

cells = cellsave(self.cell.id)