Updated logic for when game was won