added logic for dynamic enemies based on map