 
 onDiagramClick = (e) ->
 	diagram = game.currDiagram()
-	o = new Point("", e.pageX-this.offsetLeft, e.pageY-this.offsetTop)
-		# where user clicked
+	o = new Point("",
+		e.pageX-this.offsetLeft-X_OFFSET,
+		e.pageY-this.offsetTop-Y_OFFSET) # where user clicked
+
 	# Grab the closest point to the click
 	diagram.flat_points.sort( (p,q) -> dist(o,p)-dist(o,q) )
 	p = diagram.flat_points[0]

# Low-level things
drawCircle = (p, color = "blue", r) ->
	CONTEXT.beginPath()
	CONTEXT.arc p.x, p.y, r, 0, 2 * Math.PI
	CONTEXT.strokeStyle = color
	CONTEXT.stroke()
fillCircle = (p, color = "blue", r) ->
	CONTEXT.beginPath()
	CONTEXT.arc p.x, p.y, r, 0, 2 * Math.PI
	CONTEXT.fillStyle = color
	CONTEXT.fill()
clearAll = () ->
	CONTEXT.clearRect(0, 0, CANVAS_WIDTH, CANVAS_HEIGHT)

# jQuery abstractions
enableButtonIf = (selector, bool) ->

GAME_TOTAL_TIME = 1000 * 60 * 8 # in ms
POINT_RADIUS = 5
RING_RADIUS  = 24
X_OFFSET = 10 # background pixel offset from top
Y_OFFSET = 10 # background pixel offset from left

# EPISODES provided by outer JS file

