Here's how you can start making your code more modular, in order to become easier to expand and maintain for a long-term game. Modularity comes with a lot of benefits, maybe you should learn a little more about it, since is a really helpfull tool, such as hierarchy.
~~~Social Media ~~~
My Twitter: / lpandorabox