Converted tile storage to 2d array