added generating battle