@DinoDiva43 it's because the strings at the end of a pattern need to be in the same order as in the beginning. The pattern shifts through different colours, that's why it takes a while for the strings getting back to their original position.
I think the pattern repeats after 34 rows, the strings are just not in the same order at this point.