deleted the middleArray so there is only one array to deal with; therefore, changed the renderIcons function so it grabs the type property of the object from the array and then creates and appendsa random tile element to the grid cell; it seems to work