fixed bug reported by gabrielelana: wrong winnig assignment