repeat
ch:=readkey;
if m_yes then begin
Menu;
m_yes:=false;
end;
if (ch=#0) then begin
ch:=readkey;
sipka(x,y,black);
if(ch='K') then x:=x-10;
if(ch='M') then x:=x+10;
if(ch='H') then y:=y-10;
if(ch='P') then y:=y+10;
if (x<1) then x:=1;
if (x>300) then x:=300;
if (y<15) then y:=15;
if (y>300) then y:=300;
end;
if (ch=#13) then begin
if (x> 0) and (x< 90) then FileMenu;
if (x> 90) and (x<180) then GameMenu;
if (x>180) and (x<300) then StaticsMenu;
m_yes:=true;
end;
sipka(x,y,white);
until (ch=#27);
GameOver;
repeat until keypressed;
closegraph;
end. {KONIEC PROGRAMU}