My implementation of rubywarrior's game