To find the extrems of a function of two (or more) variables, you need:
1. Look for the critical points, that is, points for which $\
abla f(x,y)=(0,0)$.
In your case, $\
abla f(x,y)=(1-y+2x,-x+2y)=(0,0) \iff x=-2/3,\ y=-1/3$.
2. Determine if the critical poitn is a maximum, minimum or saddle point, for example, you can find the Hessian matrix and look whether it is positive definite, negative definite or indefinite.
In your case, $H(x,y)=\begin{pmatrix}2&-1\cr -1&2\end{pmatrix}$.
$Det(H(1,1))=5>0$ and $\frac{d^2f}{dx^2}(1,1)=2>0$, so it is definite positive and you get a minimum.