reuse generated enemy code