Artificial Intelligence Commit

Added Intelligence to the script.