(samurai) battle script
(samurai) Generalize to handle arbitrary map sizes.