Functional app.

I'm still workingout some bugs managing the ai.
The next thing to do is wire up the central server communication.