he is the sixth in line for the succession to the throne of castile , after the king , the prince alfonso , ferdinand , sancho , don carlos , philip , juan the cook , the master at arms , the pigs , the horses , the cows , and then raymondwhich makes him utterly useless .