Justin Bieber, Chris Brown Battle on the Basketball Court

(Photograph: Justin Bieber/Instagram)Justin Bieber and Chris Brown at Sprite Celebrity Basketball Game during the 2014 BET Experience at L.A. LIVE.

Justin Bieber was battling Chris Brown.

The singers Bieber, 20, and Brown, 25, took part in the Sprite Celebrity Basketball Game during the 2014 BET Experience at L.A. LIVE. During the game both Brown and Bieber played on opposing teams and the latter gave fans a glimpse of his matchup with Brown on Instagram.

"Good game chrisbrownofficial," Bieber wrote.

He took to Twitter to speak about the honor of playing in the celebrity game during the weekend of the BET awards.

"Thank you to everyone at BET for having me today at the game," Bieber tweeted. "Honored to play and thanks for being so kind. #goodtimes."

It seems Bieber and Brown have been spending some time together in recent weeks before their celebrity basketball game. On the heels of being accused of racism after some old videos surfaced where he used the n-word, Bieber posted an image of himself in the recording studio with Brown, music producer Akon and his executive brother Abou Thiam.

Bieber did not give away just what he and Brown were working on, weeks after the latter was released from jail. Instead he simply captioned the image, "studio."

The two singers have collaborated in the past, namely on their graffiti art last year. Brown is a graffiti artist as well as a singer, and spray painted some characters on Bieber's half pipe which the latter showcased on Instagram last year.

"Breezy spray painted my half pipe," Bieber captioned the Instagram photograph. "He's super dope."

Last year, Brown revealed that he identified with Bieber and was praying for his fellow entertainer. Aside from his racial controversy, Bieber previously made headlines for his alleged reckless driving habits, aggressive behavior and alleged marijuana use.

After assaulting girlfriend Rihanna in 2009, Brown has overcome his own share of media scrutiny and spoke about identifying with how Bieber is feeling.

"It's sort of what Justin Bieber is going through right now. It's a case like how I feel," Brown said during a previous appearance on New York City radio station Power 105.1 last year. "It's being young, having limitless amount of income to do whatever you feel and at the same time there's nobody to say 'hey bruh you're looking bad right now. You're doing this or you're doing that.'"