I love the electric simulator of powder toy but I have different ideas and I though I'd try to code my own. My only problem is that I can't figure out of the electric part is working code-wise. I was wondering if anyone could explain it in pseudo-code or point me the specific lines of the code where it is processed. Thank you.