See the Stamp manual if this program makes no sense to you. Read about the button command in your Stamp manual. Many of your questions will be answered there. Ensure that your robot works reliably and consistently starting from battery plug-in. The show is no place to discover that your program gets lost on power up.
Planning is everything.
Some of you might be considering a robot with multiple moving axes. We strongly recommend that you get one axis with one motor working perfectly before going on to the next. That way if you fall behind, you will still have a working machine for the show. Reliability is everything. For a rehearsal, run your machine 10 times, disconnect and reconnect the battery, then run it five more times.