Added the working structures for AI. Still in development, with comments needed.