Let $R$ be a finite ring with unity. Prove that every $x \neq 0$ is a zero divisor or a unit.
I made an attempt, but got stuck. I took a non-zero $x$ and defined the mapping $f: R \to R, y \mapsto xy$. This mapping may not be injective, but if it is, since it maps from $R$ to $R$ and is finite, $f$ is also surjective, and since $1$ is an element of $R$, there exists $y$ such that $xy = 1$. The ring is not necessarily commutative, however, so I also need to find a $y$ such that $yx = 1$. My thought was to define an analagous map $g: R \to R, y \mapsto yx$, which may or may not be injective. But then I run into problems where the first map is injective, but the second isn't.
Any help would be appreciated.
EDIT: The linked question does not answer this because it assumes that the ring is commutative. This ring is not commutative.