So I am working through some problems on my own and ran into one I have a question about. It is as follows. Let $(X_1,\tau_1)$ and $(X_2,\tau_2)$ be topological spaces, show that a set is closed iff whenever $\{x_\gamma\}_{\gamma\in\Gamma}\subseteq A$ with $x_\gamma\rightarrow x\in X$ then $x\in A.$ I don't see how to use the hint that $\mathcal{U}(x)=\{U\in\tau_1:x\in U\}$ form a directed set with $U\leq V$ implying $V\subseteq U$. Any help pointing me in the right direction would be appreciated.
Attempt: Suppose that whenever $\{x_\gamma\}_{\gamma\in\Gamma}\subseteq A$ with $x_\gamma\rightarrow x\in X$ then $x\in A.$ For all $x\in X_1$ s.t. $x\not\in A$ (i.e. $x\in A^C$) we have that $x$ is not a limit point of $A$. Hence, $A^C$ is a neighborhood of $x$. Now we only need that $A^C$ is open, which is true since it is a neighborhood of all its points as $x$ was arbitrary. This should give us the first direction. I don't see how to get the other direction based using the provided hint.
Assume A closed. Let n be a net into A that converges to a.
To show a in A use the theorem for closed A
x in A iff for all open U nhood x, U $\cap$ A not empty
and some facts about convergence of nets to show x in A.
Conversely, to prove A is closed, show
if for all open U nhood x, U $\cap$ A not empty, then x in A.
So assume for all open U nhood x, U $\cap$ A not empty.
Use the hint to construct a net into A that converges to x
and with that conclude x in A.