AI now follows the node previous when in a dead end, but not correctly