My first attempt at C++ AI