Nice BFS! Algorithm for 连连看!