still having trouble getting the tileArray