new win logic for ttt