Commit for Victoria's duplicate triangle bug.

Moved a bit of code to alleviate creating excessive duplicate triangles.