A model of the development of stable competing relations in the self-organization of biosystems