isthere = false
          pos = 0
          until isthere
            if ending[i] == base[pos]
              isthere = true