ES wrote
Wow, you are quite possibly the rudest person I've met on a tech help forum, and that's saying a lot. No shit you can't see my code, that's why I didn't spam it all in the first line so I could know what to post.
This project was fun but after being talked down to for asking a simple question on a help forum I'd rather take my efforts elsewhere.
Have a good day.
You are certainly free to do so. Whether you go or stay is completely up to you.
But whatever you do, you might give just a bit of thought to how it is pretty unreasonable to ask for help and not provide any usable information. This is like calling up an auto mechanic and saying, "My car doesn't start. My other car starts. I'm at a loss," and then getting upset when they aren't impressed by your every word.
I provided you with a specific action plan. You can follow it or not. Your choice.
If you follow it and can't figure out why your gate isn't doing what it is supposed to, then post the relevant line from your .out file and I will be more than happy to help you through it. I will even be more than willing to look at your code and guide you to finding what is wrong.