not to mention i made friends with riley , an old hellhound frenemy of sam 's , to help me get sam out of hell-which he did ... but he also stole the treasure map and gave it to beelzebub , the evil prince of hell by whom riley happens to be enslaved , due to a family curse .