creates enemy from string code