I have the following code:
size = 10;
g = GridGraph[{size, size}];
getEdges[w_] := #[[1]] -> #[[2]] & /@ Partition[w, 2, 1];
getPath[v_] :=
getEdges[Join @@ FindShortestPath@g @@@ Partition[v, 2, 1]];
Iterate[s_, t_, 0] := getPath[{s, t}]
Iterate[s_, t_, n_] := Iterate[s, t, 0]
graphArrow[edge_] :=
Arrow[{GraphEmbedding[g][[edge[[1]]]],
GraphEmbedding[g][[edge[[2]]]]}]
M = Manipulate[
HighlightGraph[g, {Style[Source, Blue], Style[Destination, Red]},
VertexSize -> Medium,
Epilog -> {Black, Arrowheads[.03],
graphArrow /@ Iterate[Source, Destination, n]}],
{n, 0, 100, 1}, {Source, 1, 100, 1}, {Destination, 1, 100, 1}]
CloudDeploy[M]
When attempting to use CloudDeploy on M I get a Manipulate expression with "code" inside of it, as follows:

How can I fix this?