tried more work on implementing Tiles as an 1D array