implement a naive greedy algorithm for minimizing the number of tiles.