win logic is working