Changed the completed tank prefab in unity editor to have the new tank AI script. Everything works now.