Sorry but I'm not comfortable giving out any code for this game. However, if you'd like me to explain how any systems work, I'd be okay with that.
Sure, I would like for you to explain how the system works.
Which? The game was a pretty big project considering that I don't use a game engine - what do you want to know about.