add card move and merge logic