There is a time I stole something with my best friend and we ran away. Then I got turned in by my best friend and went to jail.
Did you think that your friend would turn you in to the police for stealing?
No but the store owner in the Bahamas accused us and then they blabbed.
Sometimes we have urges to take things for ourselves that do not belong to us. You shouldn't act on those urges and break the law, you should find the means to make income to purchase what you're looking to get. Continuing down the line of breaking the law will only land you in more trouble and more jail time.
I don't think your comprehension of the event is correct.
Even so, taking things is still wrong.  Next time you could wind up in jail.