atmega328 program

The program resets every time you power the board. You can put the same code onto another Arduino. What do you intend when you say transferred.