Adding drawing functionality to canvas element.
Binding click handlers to canvas and canvas-related buttons.
Adding functionality for drawing triangles in the canvas.