win logic almost done