My solutions on Ryan Bates game (ruby-warrior)