Added win logic