Use 2D array to get tiles
Fix backwards (x, y) indexing