-->What will RAM do when i am Moving the code
I've been sent a personal message by CuteBuddy6 to ask for more help. Please don't.
I don't understand this sort of talk. Are you asking what the RAM will do if the buggy moves?
Oh. I see we are up to page 4.
Almost certainly the program is restarting because of electrical issues. To test disconnect the buggy and see if it restarts. The circuit you posted doesn't seem (to me) to have the Arduino in it.
You seem to be completely incapable of responding to direct questions, such as:
What does the output on Serial Monitor look like?
well its get restarted after every two command or one command i send through serial monitor
How about replying?
What Do You See In The Serial Monitor????? Copy and Paste. Don't Just Describe It.