refactoring enemy's create func.