Fixed issue with win condition