modified script to generate enemies