Update game logic with win condition checking