Glad you are ok now, but what caused you problems from what I can read here is greed and you were not disciplined.
This is what I keep saying that gambling is not the problem, if can't control gambling obviously it will control you and that is where you start to have problems and can even get broke
I have managed to be in control of my gambling activities and I detect the pace that I will go, when I want to stop I do that and if I want to continue I do that regardless of if I am having a good time or not.