Upgrade Scott Temple AI to use new phase system

Also fixed a crash due to Temple's AI not having been upgraded to use
the new RNG library.  It was still trying to call the old RandomOf()
function, which no longer exists!