If you're looking for help with programming, you want to go to StackOverflow, and ask your question on the main site, where it will have a much better chance of getting the attention it needs. "Programmers" is about the Software Development Life Cycle - but we do not help with debugging, and we most certainly won't write code for you.
@PatrickGregorio Check here on what to do about "Best Practices" questions: meta.stackoverflow.com/questions/265928/… Basically, they might not be on-topic here but could possibly be on Programmers SE. I'm not too clear on it, so I'm not flagging either way, but hopefully this will be of some help to you. — Tophandourjust now