Restrucutred code, made names consistent, remade AI.
Merge pull request #4 from kalodsun/master

Restrucutred code, made names consistent, remade AI.