implemented function insert_enemies