DETROIT (AP) - Blake Griffin's first few days with the Detroit Pistons were a bit of a whirlwind.
Detroit was able to win two close games with him, but coach Stan Van Gundy sees a lot of room for improvement.
"I've got to get it figured out offensively," Van Gundy said. "I'm not helping him or us a lot. You could actually see today in the early fourth quarter, we were actually a lot smoother when he was out because we were just playing.
"I've got this great player now, and so we're just sort of playing to him all the time, and the defense is all loaded up."
Andre Drummond had 23 points and 20 rebounds, and Griffin made a key 3-pointer in the final minute to lift the Pistons to a 111-107 victory over the Miami Heat on Saturday night. Whatever Van Gundy's issues were with the offense, they didn't prevent Detroit from scoring 35 points in the final quarter.
Ish Smith added 25 points for the Pistons, including a late 3-pointer of his own. Detroit has won three in a row, the last two with Griffin in the lineup after acquiring him in a trade .
Griffin's 3-pointer with 44 seconds to play put the Pistons ahead 108-101, but Goran Dragic responded with a four-point play, making a 3-pointer while being fouled with 32 seconds left. Detroit ran the clock down on the next possession, and Smith sank his only 3-point attempt of the game, from the right corner with 14 seconds to play.
"We played that the way we wanted, but Griffin made the pass and Smith stepped up and hit the 3," Heat coach Erik Spoelstra said. "It doesn't matter if he's not known as a 3-point shooter, he made that one when they really needed it."
Dragic scored 33 points for the Heat, who have lost three in a row. Miami was without center Hassan Whiteside, who was out with an illness.
Smith, who has struggled at times while trying to replace injured point guard Reggie Jackson, went 11 of 14 from the field and finished three points shy of his career high. His previous season high was 19 points.
Griffin had 16 points, nine rebounds and seven assists.
"Just a little more tired today - the adrenaline wore off a little bit, just the toll of the week," Griffin said. "It's amazing to see all these guys step up and play so well."
Heat: Olynyk and Josh Richardson scored 19 points for the Heat, and James Johnson added 18.
Pistons: Langston Galloway scored 13 points, surpassing 2,000 for his career. ... Detroit was without G Luke Kennard (foot) and G Dwight Buycks (illness).
Drummond had at least 20 points and 20 rebounds for the sixth time this season. He has 19 20-20 games since 2012-13.
He also had four steals, four blocks and six turnovers. He was the first player with at least 20 points, 20 rebounds, four steals and four blocks since Hakeem Olajuwon on Dec. 22, 1989.
Drummond and Griffin had nearly as many rebounds as the entire Miami team, and the Pistons finished with a 49-33 advantage in that category.
"They are really tough, because they've got two of the best rebounders in the league, especially Drummond," Olynyk said. "You have to stop him, and then you've got to stop Griffin, who has all that strength and that vertical leap. You have to find a way, but it isn't easy."
Heat: Host the Orlando Magic on Monday night.
Pistons: Host the Portland Trail Blazers on Monday night.