Continue AI implementation.
Add ai component, ai system and some other classes.