Cade Cunningham scored 29 points to help the Detroit Pistons break a seven-game losing streak in Atlanta