Move all the tiles at the end of the loop