Revert "new AI"

This reverts commit d872569407f72bab1d53ece706d26fc7b3bb2bc6.