- Keep track of all visited nodes in a map.
- Compute the length of continuous unvisited nodes from the current node to left, right, up and down.
- Choose the direction that has the longest continuous unvisited nodes as the next direction.
- Can only have two users at same time.
- It works in a defensive way.