solve maze with Lee(wave) algorithm