Judge dismisses charges, denies motion for retrial