you can make a sudo-function like:
goto skip_face_func
:face_func
set x=%1
set y=%2
if not defined x set x=0
if not defined y set y=0
if %face%==up set /a x=%x%+1
if %face%==left set /a y=%y%+1
if %face%==down set /a x=%x%-1
if %face%==right set /a y=%y%-1
goto :eof
:skip_face_func
:: Making x=1 y=4
call :face_func 1 4
echo x:%x% y:%y%
:: Making x=5 y=2
call :face_func 5 2
echo x:%x% y:%y%