I 100% feel you with the web game, I had to scrap my web version last minute because one button just stopped working in my web version for seemingly no reason. I definitely understand the spaghetti code too, it seems the closer you get to the deadline the more screwed up the code gets