Okay, one more time: "deus ex machina" as a literary term does not
mean "using gods to solve the problem." That's what it originally meant two thousand years ago
. We do not live in Ancient Greece, so that is not the correct way to define the term. It means using any
gratuitous plot device that comes out of nowhere to solve the problem without any prior setup in the story. If the gods were set up earlier in the story, then their involvement in the solution is not
a deus ex machina.