Prove that a continuous function from $B(0,1) \subset \mathbb R^2$ to $\mathbb R$ can not be one-to-one where $B(x,\epsilon)=\{y \in \mathbb R^2: d(x,y)<\epsilon\}$
I want to prove use the fact that connected sets are mapped to connected sets. However, I am unsure of how to apply that because both of these sets are connected.