minor fixes
added stopping for maze solver