Like I said, it's about the structure and the one I mean is best learned from Lilly or Classic or any layout that utilizes it.
IIRC, zork made an example/tutorial layout where every unit got it's own function. That would work out, too. I mean you could try to keep what you have and create such a function for an additional player unit and spawn it separately.