More updating main.cpp to use object instead of triangles.