Fixing bug with win condition.