No offense but this post has a lot of explanation for what is really a very simple question: how to find the largest value in a hash.
That being said, you could do scores.max_by{|key,val| val}
on a hash called scores. This is assuming the scores are integers, not strings. If the scores are strings you could do scores.max_by{|key,val| val.to_i}
instead. That will return an array with the key (team name) as the first item, and the value (the score) as the second item.
See the original question from StackOverflow I posted above for more info.