Pck21 and BingoBrown are both correct. You should always seek legal representation if you feel you were wronged (even if it is your fault). It doesn't cost you anything for a lawyer to hear your case.
I use to work in Advertising for one of the biggest retail chains in the US. We made countless number of errors (glitches,etc) that were taken advantage of by employees as well as customers. Most employees who were caught were fired (some escorted out by police, some without incident). However, when a terminated employee got legal representation, we got scared.
No company needs bad press (especially from an error the terminated employee did not create, but only utilized for his advantage).
Most (if not all) cases were "settled" in one form or another (we do not like going to court nor the negative press it could possibly create).
However, if you are seeking a lawyer to:
1. Get your job back, forget about it. It's never going to happen.
2. Drop any charges they might pin you with, a possibility (there a tons of terms they can use to describe your dismissal instead of theft which will help you out when seeking another job).
Since you got "friends" in on this and told them such, you just have to ask yourself is it worth it. You play this the wrong way and they will try to charge you with every "glitch sale" that occured within 100 miles of your location (and if your friends grabbed even half of what you scored, I think it qualifies for a grand theft charge). Not because you told that many people, but to make an example out of you to present and future BB employees.
Good Luck with whatever you decide.
And don't feel too bad. I'm 100% positive after they see how much money they've lost, their POS Systems Crew will get their walking papers also. 2 glitches in 2 months is unacceptable (X-Blades and now this).