(MSVC) More AI routines hooked up + rename endgame/misc.cpp to endgame_misc.cpp