Added win condition to flag