Judge decides teen charged in a pipe beating may stand trial