Added method to determine winner.