Judge grants new trial for man convicted in 2010 murder