Update bfsPuzzle