now reading from array of array of states and transitions (fendy)