Hey Banjo,
What is it that you want to do exacly? I'm guessing you want to develop a smart ass AI, but before trying on code you should figure out exacly which algorithm will work better for you. This
site explains all FSM, GAs and NNs and maybe help you decide.
btw, "Error E355-Startup failure" + "Error 97 Syntax error - Nonexistent/empty function remove" means you need to replace all remove(...) functions with ent_remove(...)