A clear mind is what we need to understand many things that happen in gambling. After my first big loss, I actually immersed myself in studying the emotions of players, probabilities and other things that can affect us and bring us closer to winning. Ultimately, as you wrote, I found the perfect formula for the game for myself - this is knowledge of many subtle things, understanding that losing and winning is simply a random result to a large extent, so you need to learn to accept it anyway. In short, gambling has taught me many things, sometimes it seems to me that even in life I can now be absolutely calm in any stressful situation, sometimes it even surprises me with my excessive calm and cold calculation.
You say it with right because understanding many things that happens to us will gives us a chance to learn from what happens. We can be wise than before because we can get the main thing that we gets from our lesson. When we can learn from what happen to us, we will see that we can adapt to the current situation and will not make a rush decision. Related to gambling, we will not trying to achieve anything from gambling because that will be difficult for especially if we already gets many worst experiences before. That will helps us understand that gambling is not a place to achieve something.
We will be more careful when playing gambling and we will trying to limits our money and time to prevents the lose. We know that achieving anything from gambling will be difficult so we don't trying to do that instead will search for how we can enjoy playing gambling. Once we can enjoy playing gambling using limitation, we will see that gambling is just an entertainment that can makes us feels relax without trying to achieve anything from gambling.