Notice that $X_A$ and $Y_A$ have to be of the same parity because you start at $(0,0)$ and if you move $x$ steps to right or left and $y$ steps to top or bottom by the rule you have $x+y=4$ and the sum of an odd and an even is always odd so it must be the case that $x,y$ are both even or they are both odd. So $X_A+x$ and $Y_A+y$ are of the same parity.
Now similarly $X_B$ and $Y_B$ must have different parities since you start at $(0,1)$ now you have $x+y=6$ which again implies that $x,y$ have the same parities which implies that $X_B+x$ and $Y_B+y$ have different parities.