maze solver and generator