3D potts model