Changed the Triangle[] triangles to an array list so that we can dyanamically remove triangles from the list and add them