Fixed lingering log piles

Fixed log piles not being removed when a merge leaves the top one empty.