updated battle script