Improved and working version of the AIEngine

Working now, might (probably) not be usable with the tictactoe Logic.