Click squares to make walls. Press B(BFS), D(DFS) or S(shortest path).