put drawing the triangles in a separate function
made the distances negative for the translation