My solution to the ruby-warrior game by rbates