tiles generating and recycling in a line