def test_mod(self, set_cells):
        set_cells = set(set_cells)
        current = self.starts
        visited = set()
        while current:
            visited |= set(current)
            #print 'TRY', current
            #print 'VISITED', visited
            next = set()
            for x, y in current:
                options = self.get_neighbors(x, y)
                options.reverse()
                #print 'VISIT', (x, y), options
                while options:
                    c = options.pop()
                    p = c[1]
                    if p in self.ends:
                        #print 'END', p
                        return True
                    if p not in set_cells and p not in visited:
                        next.add(p)
                        break
            current = list(next)
        return False
Determine whether the map would be solvable if the cells
dataset/ETHPy150Open ardekantur/pyglet/contrib/spryte/dtd/path.py/Path.test_mod