working win logic, with logic attempts coded out