flag gets reset after winning game