Added the mess that is the battle system

I haven't tested it all yet, and I will, but my head hurts. It needs
refactored, there are probably better ways to do it, but at least what
I'm trying to do is there. I miss C# since it has some things that makes
this easier.