Commit 15

Super awesome (almost) bug-free AI expansion algorithm finished.