AI logic partly added
Merge pull request #2 from pgayane/master

AI logic partly added