Development of a potential based code for MHD analysis of LLCB TBM