AI now takes opponent victory and path into account