fixed errors in dopewars.rb shown by msftidy