set boundToNitrogen to be the atom bound to nitrogen

varible was being used uninitialized, pretty simple fix.