BFS on a simple puzzle