Commit 13

Creating algorithm for AI expansion. V.hard!