 				x: 0
 				y:	0.00002
 
-		bounds = Physics.aabb(0, 0, CANVAS_WIDTH, CANVAS_HEIGHT);
+		bounds = Physics.aabb(0, -CANVAS_HEIGHT, CANVAS_WIDTH, CANVAS_HEIGHT);
 		world.add Physics.behavior 'edge-collision-detection',
 			aabb: bounds
 			restitution: 0.3

REGEX_TYPE_BACKSLASH = 2
REGEX_TYPE_LETTERS_DIGITS = 3

digit_image = new Image()
digit_image.src = "digits.png"

add_block = (world) ->

	block_width = 140
	x_start_pos = Math.random() * (CANVAS_PLAY_WIDTH - block_width)
	console.log 'x': x_start_pos

	block = Physics.body 'rectangle', 
		width: block_width
		height: 20
		restitution: 0.95
		mass: 0.1
		x: x_start_pos
		y: 0
		view: digit_image

	rotation = (0.5 - Math.random()) * 0.002
	block.state.angular.acc = rotation
	block.regex_type = REGEX_TYPE_DIGITS

	world.add block

	current_block = block

mouse_2_canvas_coords = (canvas, event) ->
	cx = 0
