suggestion: some bonds should have a bigger priority than others, for example, when spawning oxygen on hydrogen gas, the hydrogen bond would collapse and turn into h2o.