BOSTON, April 19 (Ticker) -- The Boston Celtics finished their season on a positive note.

Rookie Ryan Gomes scored 19 points and Tony Allen added 17 as the Celtics snapped a five-game losing streak with an 85-78 triumph over the Miami Heat.

NBA TV highlights from
Heat-Celtics:
Play
In what was a tight game, the Celtics took control with a 12-0 run early in the fourth quarter. Rookie Orien Greene, who had 14 points and five steals, capped the burst with a layup with under eight minutes remaining.

"For us young guys who have been playing a lot of minutes over the last five games, we're going to think about this win at the beginning of next year," said Gomes, who made all 10 of his foul shots. "Even though some of these games were meaningless to some of those teams, just to be out there competing that will give us a spark coming off the bench knowing that we played significant minutes against some pretty good competition."

The Heat (52-30), who are seeded second in the Eastern Conference, rested All-Stars Shaquille O'Neal and Dwyane Wade for a second straight game as they prepare for the Chicago Bulls in the first round of the playoffs. Miami won three of four meetings from Chicago this season.

"They're all athletic and young and they're all free willing," said Heat guard Gary Payton, who played only nine minutes. "They (Chicago) are playing really loose. It's going to be a good challenge. We're going to have Shaq back in there and all of us playing on the same page with everybody back."

Brian Scalabrine had 10 points and seven rebounds for the Celtics (33-49), who shot 36 percent (27-of-75) from the field and collected 10 steals.

"We have a lot of work to do as a team and I can see that," Boston coach Doc Rivers said. "It's exciting because I do see the talent on the floor and I like the fact that this group enjoys playing with each other."

Dorell Wright scored 20 points and Antoine Walker contributed 14 for Miami, which shot 32 percent (23-of-72) and lost for the first time in four meetings against Boston this season.