After playing in a first-half funk, the Memphis Grizzlies finally relied on better team basketball in the second half.

And Rudy Gay's 3-pointer with 23.9 seconds left put the finishing touch on the Washington Wizards.

Gay scored 27 points, including five in the final minute, to lift the Grizzlies to a 97-92 victory over the Wizards on Sunday.