0: Pass through all obstacles\n and reach the goal.