Initialising array of array

You have overcomplicated things by getting State involved. People are trying to help you with State, but it is not actually relevant to the question. Tackle the idea without State involved, first.