Changed tiles to a 2D array