Arduino MEGA2560 code stops after power down and up