moving sequence code to sequence.ino