Here's a bit of an update. I'm making it simpler because my deadline is coming... Now each of ships takes just one coordinate. And when player picks coordinates, as far as I'm understanding it should go through all possible variations (r1-r10,a1-a10) and see if given coordinate matches previous player coordinates. (pirm zaid stands for first player and antrzaid stands for secondplayer).
@echo off
echo laivu musis.
echo 2 zaidejai.
echo Ar norite pradeti?
echo jei taip spauskite, bet kuri klavisa, jei ne ctrl+c.
pause>null
TITLE NAVAL BATTLE
echo pasirinkite:
echo T - Pradeti zaidima
echo N - Baigti zaidima
CHOICE/c:TN
if errorlevel 255 goto end
if errorlevel 2 goto end
goto start
:start
echo.
goto firstplayer
goto secondplayer
:firstplayer
echo pirmas zaidejas iveda savo 10 laivu. 1 koordinate = 1 laivas
set /p x1=
set /p x2=
set /p x3=
set /p x4=
set /p x5=
set /p x6=
set /p x7=
set /p x8=
set /p x9=
set /p x10=
:continuegame
echo pasirinkite ar testi?
choice/c:TN
if errorlevel 255 goto end
if errorlevel 2 goto end
goto clean
:clean
cls
goto secondplayer
:secondplayer
echo antras zaidejas iveda savo 10 laivu. 1 koordinate = 1 laivas
set /p y1=
set /p y2=
set /p y3=
set /p y4=
set /p y5=
set /p y6=
set /p y7=
set /p y8=
set /p y9=
set /p y10=
:continuegame
echo pasirinkite ar testi?
choice/c:TN
if errorlevel 255 goto end
if errorlevel 2 goto end
goto cls
:cls
cls
goto PirmZaid
:PirmZaid
echo Pirmo zaidejo eile.
echo pasirinkite koordinates. Pirma raide ir tada skaiciu.
set /p a=
for %%U in (R1,E1,S1,P1,U1,B1,L1,I1,K1,A1,R2,E2,S2,P2,U2,B2,L2,I2,K2,A2,R3,E3,S3,
P3,U3,B3,L3,I3,K3,A3,R4,E4,S4,P4,U4,B4,L4,I4,K4,A4,R5,E5,S5,P5,U5,B5,L5,I5,K5,A5,
R6,E6,S6,P6,U6,B6,L6,I6,K6,A6,R7,E7,S7,P7,U7,B7,L7,I7,K7,A7,R8,E8,S8,P8,U8,B8,L8,
I8,K8,A8,R9,E9,S9,P9,U9,B9,I9,K9,A9,R10,E10,S10,P10,U10,B10,L10,I10,K10,A10) do if %a% == %y1%%y2%%y3%%y4%%y5%%y6%%y7%%8%%y9%%y10% goto hit1
goto AntrZaid
:hit1
goto setcolor1
:setcolor1
color 4f
goto shootagain1
:shootagain1
color 0f
goto PirmZaid
:AntrZaid
echo Antro zaidejo eile.
echo pasirinkite koordinates. Pirma raide ir tada skaiciu.
set /p a=
for %%U in (R1,E1,S1,P1,U1,B1,L1,I1,K1,A1,R2,E2,S2,P2,U2,B2,L2,I2,K2,A2,R3,E3,S3,
P3,U3,B3,L3,I3,K3,A3,R4,E4,S4,P4,U4,B4,L4,I4,K4,A4,R5,E5,S5,P5,U5,B5,L5,I5,K5,A5,
R6,E6,S6,P6,U6,B6,L6,I6,K6,A6,R7,E7,S7,P7,U7,B7,L7,I7,K7,A7,R8,E8,S8,P8,U8,B8,L8,
I8,K8,A8,R9,E9,S9,P9,U9,B9,I9,K9,A9,R10,E10,S10,P10,U10,B10,L10,I10,K10,A10) do if %a% == %x1%%x2%%x3%%x4%%x5%%x6%%x7%%x8%%x9%%x10% goto hit2
goto PirmZaid
:hit2
goto setcolor2
:setcolor2
color 4f
goto shootagain2
:shootagain2
color 0f
goto AntrZaid
:end
now doesn't matter what I'm inputing, I'm only changing from first player to second player forever. Help is more than welcome.