*EDIT* Nevermind. Been staring at code too long. Realized I messed up my booleans.
posted 1 year ago
...but looking at the old version of your post I can see horrible things like
== true and == false everywhere. That is not only poor style bur also error‑prone because you might write = by mistake.
Never if (b == true)... but always if (b)... Never if (b == false)... but always if (!b)...