// refrence codepen/io // student number 308832 / when animating on canvas, it is best to use requestAnimationFrame instead of setTimeout or setInterval