My solution to the Greed Game for ruby_koans.