Arduino freezing after moving from Mega to Nano.