loop 4 times panobot

Next step is a better code and more features.

No. The next step is to learn to use Serial.begin(), Serial.print(), and Serial.println() to debug your program.