Take a positive from your walk home. People are moving so fast in modern life, so occupied with doing something else while they are travelling, maximising their attention in every possible moment they miss the simple calm thoughts that are required for a good direction in life.
The walk could be considered a negative, you had to expend more energy to get home and maybe you were hungry and thirsty by the time you arrived. Or it could also be a negative, some exercise, some time alone to consider your overall strategy in both life and also your past times like gambling.
It could easily be you gained from what you saw as a negative event. All depends how you handle it and your frustrations maybe. Alot of things in life can turn out ironically, we are greatest in our recovery not so much just winning and being lucky. Hopefully you get what I mean.
I do think its best people only spend what they have spare, so this forced time out by walking home was symbolic perhaps and you took further time to collect your thoughts and come back stronger