Can dogs understand humans? Inside the complex cognition of canines