Searching for any path, not for shortest