create api for battle and modify rewards api