updated ai getting its direction/waiting