Extract the cell constructor for further use
Breadth-first search