Judge: Drifter competent to stand trial in teen's killing