Added optional name to searches. Fixed BFS cost.
Now continues until all searches are done and prints the cost of each path.