fixed determine winner