Continue writing the algorithm - adding traversing of the triangles