FYI: You could have accomplished the same thing with this one line of code:

maxKey = concordance.max_by{ | k, v | v }.first      #this returns [maxKey, maxVal] determined by the value element