bool isEnd(Map &map) const{ for(size_t i=0; i<front->length(); ++i){ if (map.mark(0, front->at(i)) && map.mark(1, front->at(i))){ return true; } } return false; }
Coord meetCell(const Map &map) const{ for(size_t i=0; i<front->length(); ++i){ const Coord &c = front->at(i); if (map.mark(0, c) && map.mark(1, c)){ return c; } } return Coord(0, 0); }