working on removeTiles function