The judge of a court in which the trial of an offense is held may grant a new trial to the defendant, for any cause for which by law a new trial may be granted, or when it appears to the court that justice has not been done, and on the terms or conditions as the court directs.
MCL 770.1