So the thing is that i made variable "x" and set it as "0", i wanted to make it longer while pressing "d" and shorter while pressing "a", but i think that it shouldn't look like that, here's the code:
@echo off
set x=
set/a xnum=0
:m
set x=%x%0
cls
echo %x%
choice /c ad /n
if %errorlevel% equ 1 goto a
if %errorlevel% equ 2 goto d
goto m
:a
if %x% gtr 1 set /a pos-=1
:d
if %x% lss 17 set /a pos+=1
goto m