... So clearly it would be in how the atoms are arranged. ...
... would suck if, basically, you solved this with nested if-then loops. It would be really ...