Triangle-drawing works properly