A dog steals food because he's a keen observer and devious opportunist