updated enemyfactory class