There is a real problem here - and it's summed up in your closing comments:
Quote:
Being the teacher and the student is akin to learning Swah lee from a book. I need help.
Yes, it is - or worse, it's like learning to ride a motorbike by jumping on and twisting the throttle when you have never ridden a bicycle yet! What you don't know is going to hurt you, and hurt you a lot.
In terms of computers and development, not knowing what you are doing isn't going to break bones, tear flesh from your body, or kill you - but it makes learning how to do things much, much harder than they should be. The whole structure of your question says "I got some things working, but I don't know how I managed it".
That's a problem. If you don't know something exists (the brake(s) on the motorcycle) then you won't use it - so what could make your life easier doesn't even appear in your list of possibilities.
What I'd suggest is that you shelve this project for the moment - back it up and hide it away until you know a good bit more about what you are doing - and then start learning properly. Which means a course (best way) or a book (pretty good), but please: not YouTube videos!
A course is best, because a tutor can rephrase stuff when you don't understand - check locally and see what is available.
A book is good, because it presents all the info in a structured way, leading you from the simple stuff to the more complicated in a sensible way, explaining why you do things. Wrox, Addison Wesley, and MS Press all do good ones.
Youtube is bad, mostly because the vast majority of them and produced by people who have no idea how to teach, how to make a video, or even how to code. Likes and subscribes are the target, not your education. There are good ones out there, I'm sure - but they are buried in a sea of dross. Avoid.
Teaching yourself by guessing ... that's even worse because you can't teach yourself what you don't know, and you can't tell when you are doing the wrong thing even if you accidentally get the right result!
And to be honest, we couldn't even begin to help you sort out your existing code based on because we have no idea what you did to get it working!