You don't create a sprite by IID so not sure what you are trying to achieve with that ? In general though if you are picking from the array you find the row of the relevant object in the array then if for example the row is 3, and the co-ords of the object are stored in columns 1 and 2 you would create the object at (array.at(3,1), array.at(3,2). Also to note you can just store all this data in one array.