Put wins_on checking in its own function to remove duplication