a naive way to solve 'move the box' which is a game on the phone.
it read from the stdin, the first line means the limited step to solve the problem, and the following seven lines which ends with '0' describe the map.
$ ./a.out
2
0
0
1 2 3 0
3 3 2 2 1 4 0
1 4 0
4 0
0
which stands "Level 1 in London".