My attempt at solving the rubywarrior game.