Almost implemented ai engine