Added triangles to the program
Triangles are now added using equations instead of hard-coding. Hinges between shapes now work correctly.