#19: click events depend on two functions - algorithm(), and draw()