2 effects on one strip 1 pin

If this is all you want to do then post the code (in code tags) and we can probably tell you an easer way of doing it than a state machine.

Note read
how to get the best out of this forum to learn about posting code here in code tags.