Very cool game, thanks :)
One minor issue in the API docs:
canvasContext.beginPath() Begins drawing a new shape. canvasContext.beginPath(x, y) Sets the end coordinates of a line.
this second beginPath should be lineTo, took a minute to debug in level 16 :)