Implementation of rubywarrior