Rename and refactor triangle variable and triangles driver method