First, I may have hurt myself watching that, trying not to laugh to loud. That's awesome.
Second, seriously, the judge should let the public defender off the case, and order new counsel. It's not going to solve the big problem, but it's avoiding one of the smaller ones. And, the P.D. will be in your debt for letting him away from the insanity.
Third, the judge should now recuse himself from the case, for pretty obvious reasons after that hearing. It'll help avoid the ethics charges that the defendant will no doubt file after his conviction.