zigzag simulate
phone dfs