Sorry I'm still not sure how I should be handling the for each loop issue.
Also how would I go about making it more efficient?
(Eventually it will be 6x6x2)
(Also this project is so I can learn how to use a tile editor so I can then add it to a different game I'm working on)