Edited BFS to return string path