My attempt at the ryanbates' Ruby Warrior