Still working on writing the lenght calculation of loops. Right now the way I'm writing it is restricted to the fully packed loop model where each vertex only has two spins assosiated with it.