rubywarrior game implementation