sentence: in ancient theatrical plays every time the plot got too tangled for a rational resolution , catharsis ( greek for cleansing i.e. resolution as in cleaning up the mess ) came in the form of a god ( deus ex machina ( translated from latin as god from the machine ) ) , that descended from above with the aid of mechanical devices such as lever , crane and pulley i.e. from a machine , and dispensed resolution to even the most complex of predicaments .