updated with changes from WL regarding enemy functions