Let $M$ be a metric space, $A\subseteq M$. $A$ is closed in $M$ $\iff$ for all sequences $\{x_{n}\}$ in $A$ which converge in $M$, the limit points are in $A$.
I get the proof of $\Rightarrow$
In the lecture note the proof for $\Leftarrow$ is written as follow:
Let assume that $A$ is not closed, and let us build a sequence of points in $A$ that converges to a point outside of $A$. $A$ is not closed, therefore $A^c$ is not open, so there is $p\in A^c$ such that, for all $\epsilon>0$, $B(p,\epsilon)\not\subseteq A^c$ in particular it is true for $\epsilon=\frac{1}{n}$ which means that for all $n$ there are points $x_n\in A$ but $x_{n}\in B(p,\frac{1}{n})$ therefore $d(x_n,p)<\frac{1}{n}$ and $x_{n}\rightarrow p$ and $x_n\in A$ and for all $n$ $p\in A^c$
I did not understand that move "which means that for all $n$ there are points $x_n\in A$ but $x_{n}\in B(p,\frac{1}{n})$ therefore $d(x_n,p)<\frac{1}{n}$ and $x_{n}\rightarrow p$ and $x_n\in A$ and for all $n$ $p\in A^c$" what have he shown here?