Drift through molecular space and collide with other atoms. If both have free valence electrons, you'll bond. Build the target molecules to advance through levels.
The chemistry is real: bonds form by valence rules; electronegativity differences create ionic vs covalent bonds; energetic recollisions upgrade single bonds to double or triple.