Changed updateTriangle to updateTriangles