win logic complete