So, write a letter to the judge who presided over your case detailing your complaint with your request for a new trial. (You should, however, bear in mind
that merely because your "court-appointed lawyer had a pre-existing
friendship with the Commonwealth witness" that that would NOT necessarily
have created a conflict of interest which should've required this
lawyer to withdraw pretrial as your counsel.)