The question is given as follows:
In the diagram below, $BF \perp HD$. Prove that $ACEG$ is a cyclic quadrilateral. 
In class, we were told to introduce the origin $O$ and draw radii $OB, OH, OF,$ and $OD$. We then noticed that $\angle FOD = 180°- \angle FED$ and $\angle HOB = 180° -\angle HAB $, were told after that to use Thales' Theorem twice. At this point, I don't know where to use Thales' Theorem, or where to go with the problem.
Construction: Extend DO and HO to cut the circle at M and N respectively.
By considering the pink quadrilateral, we have the red marked angles are equal.
Similarly, the green marked angles are equal.
I forget the name of the following theorem (probably is called extended inscribed angle theorem). That fact is:-The size of the angle at X (HXB) is proportional to (arc HB + arc FD).
Since the angle at $X = 90^0$, then the proportional arc length is half the circumference = (arc MF + arc FD). This means arc HB = arc MF. Then, $\angle purple = \angle red$.
Result follows because $\angle green + \angle red =\angle green + \angle purple = 180^0$.
Added: Explaining "the theorem".
Let X be the point of intersection of chords AB and CD. It should be clear that:-
$\angle 3 = \angle 2 + \angle 1 = \angle2 + \angle 1’$
$\angle 2$ is proportional to the blue arc BD and $\angle 1’$ is proportional to the green arc AC. Hence, we get the required result.