implement moves after matching