corrected winner prototype logic