Fixed maze solver

very minor changes