The merging together was simply distance based.
When you split, you would have to leave a certain area before you can merge, but after leaving it, coming back as soon as you were close to one another you'd merge back. I guess a better solution would make it a button press with a prompt to make it easier? I thought of it but didn't have time to add it.