In triangle $ABC$, $AB=AC$ and $\measuredangle A=80^\circ$. If points $D$, $E$, and $F$ lie on sides $BC$, $AC$, and $AB$, respectively, and $CE=CD$ and $BF=BD$, then if $\measuredangle EDF$ equals $x^\circ$, what is the value of $x$?

Let's think step by step and output the final answer within \boxed{}.
user