added cooldown for enemies