Walk out of a 2D maze