Confused.

So my ex and I have a 5 year old son. And we have had lots of ups and downs and January of last year we got back together and even took a family vacation. After returning I kind of had a wake up call and decided it was better to part ways. Fast forward a few months, I started a new job and actually met someone so amazing, and loves me for me, unconditionally. He loves me like no ever has. So I told my ex that we were done for good because I met someone and it was getting serious. The minute I did that he distanced himself from our son completely. After 2 months he disconnected his phone, so I petitioned the court for Sole legal and physical custody and today we went to court and he didn't show up. And the court granted me everything I wanted, and now I don't even know what to think. I'm happy because it's not really a big change, I have already been making all the decisions anyway. And I would love for my son to have his father but he is just doing all of this to spite me. Help.