changed button array to tiles, adjusted to make it an array of tiles rather than numbers
Added in tiles, removed buttonarray