Destroyed the iterator-djungle in checkAllTriangles()