0: Pass through all \nobstacles and reach\nthe goal.