trivial commit maze solver breath first search method.