update to win logic