updated attack code to use more than two attacking enemies