So I think its a reaction a little like a polymerization. I drew my best guess. I don't think that nitrogen anion ever really exists as such, but I wanted to show something in the middle there to make my thinking clearer.
Normally this would be pretty wonky, but I think its driven by the fact that A. You probably heat the daylights out of it B. 1,3,5 triazine is a very favorable structure (6 member aromatic ring), more so than nitrile. Happy to discuss it with other organic chemists here!
P.S. I must be the worlds worst mod, because I just now figured out the correct way to attach a picture. Shame on me.
P.P.S Edit* And I didnt cut down my photo. Urgh. It is what it is today, I'm supposed to be working!