Update battle.c