add BFS method to judge who wins