Solutions from my time playing Ruby Warrior (https://github.com/ryanb/ruby-warrior)