fixed script for determining what enemy will be fought