added method to determine the winner if there is one