unwanted program repetition

Is the program looping or is the Nano resetting because of a power problem? Please post a wiring diagram.
HowToPost