about maze algorithm