Setup computeWinnings class function.