optimized win conditions