Performing BFS on available patterns...