Corral bfs bug fixe and corralPuzzle