Taking a step back and doing a lot of self reflecting helps a lot, no one is capable of helping you than you. It's a good thing that you were able to keep yourself under control because even though it might seem easy it's on of the hardest things to do. A lot of gamblers lack discipline, they give into their urge to keep gambling wrecklessly. As a gambler that has experienced and learned a lot you won't make certain mistakes again