Calculate the winner on the fly approach