Artificial Intelligence coded in C