Judge gives custody of 8 yr old girl to her sex-offender dad