Simplistic AI function written in Vala

Now able to call functions written in Vala
from C code.