Unique Paths, Valid BFS