How do I move a sequence through an array?