categorize and track triangles by type. Epicodus JavaScript project.