NEW YORK (AP) The task was an utter and complete transformation.

The issue was that the Maryland Terrapins did not have time for a trial run.

Luckily for them, they had Melo Trimble.

''I'm a confident player,'' Trimble said, after he scored a game high 31 points to lead Maryland to an 88-82 win over Richmond in overtime of the second game of the Barclays Center Classic Friday in New York.

Anthony Cowan added 18 for Maryland (6-0), Justin Jackson chipped in 16 points and seven rebounds and Kevin Huerter had 12 points and 10 rebounds.

''Obviously that was a great win,'' Maryland coach Mark Turgeon said. ''Just a really, really great win for this young team.''

ShawnDre' Jones had 23 points and T.J. Cline scored 18 for the Spiders (3-2) while grabbing nine rebounds and handing out nine assists. Marshall Wood added 15 points and Khwan Fore 13.

''I thought it was a great - really great - game,'' Richmond coach Chris Mooney said. ''We really gave ourselves a chance to win the game.''

Maryland scored eight of the first nine points of the extra period - Cowan made two free throws, Jackson drilled a 3 from in front of the Terrapins' bench and Trimble's 3-point play made it 78-71.

''Coach Turgeon said, `If you're going to shoot it, shoot it,''' Trimble said. ''That was the mentality I had.''

Cline had a pair of free throws that cut the deficit to 81-77, but that was as close as the Spiders would come.

Jackson hit a layup to give the Terrapins a 69-67 lead with 43 seconds left in regulation, but Cline drilled a straightaway 3-pointer 13 seconds later to put the Spiders ahead by one.

Jackson made one of two free throws to tie the game at 70. He made the first and missed the second. After the second, Cline and Ivan Bender battled for a loose ball that ended up out of bounds. A replay showed Cline had last touched the ball so Maryland retained possession.

Fore stole the inbounds, but Jones missed 3 sent the game to overtime.

''I'm very proud of my team,'' Mooney said.

BIG PICTURE:

Maryland: There is a lot to like for the Terrapins. Facing a quality opponent, Maryland authored a second half comeback before winning a taut game in overtime. This is the kind of performance that could bode well when the NCAA Tournament committee reviews at-large bids.

Richmond: The Spiders may lament allowing a win to slip from their grasp, but the perennial mid-major power played well for long stretches against a Big 10 program.

POLL IMPLICATIONS:

Maryland: The Terrapins entered the game on the outside of the Top 25. Winning the early season tournament could propel Maryland into the national rankings.

Richmond: Was not in the Top 25 prior to this weekend and won't break in with the loss.

NOTABLE:

Maryland: In the previous two early season tournament games in his career, Junior guard Melo Trimble made 24 of 37 shots from the field for a 14.3 points-per-game average.

Richmond: Prior to Friday night, the Spiders won 12 of 18 neutral site games in the Chris Mooney Era.

UP NEXT

Maryland: Will meet Kansas State in the championship game Saturday.

Richmond: Will meet Boston College in the consolation game.

Copyright 2016 by STATS LLC. Any commercial use or distribution without the express written consent of STATS LLC is strictly prohibited.