This is exactly the reason why people become racist. It seems that more often than not, minorities jump to racism as an excuse to be pissed off before they ask someone why this happened. If you were that concerned, you should've asked to speak with the store manager. This is what the store manager would say:
It is policy to ensure that no one walks around the store with an unpaid for item that has been locked up. This includes game consoles, iPods, games, and some gaming accessories. If the sales associate just handed you the game and let you walk around with it while you continued to shop, what would be the point in locking it up in the first place? It must be purchased at the time of unlocking it or it must be kept under the supervision of an employee. The only reason the guy handed the game to the other person is because more than likely the other person already told the guy that he wanted to purchase the game right away. So you need to shut your mouth and stop calling people racist when they're not, because it's ### like this that makes others racist. It's called reverse racism.