     @mask = new MissingPiecesMask(this)
     @piece = new PuzzlePiece(this)
 
-    @puzzle_pattern.draw_pattern()
-    @piece.construct_piece("d")
-    @piece.draw_piece(0,0)
-
-    @piece.draw_piece_ab(@piece.hex_box.anchor_hex[0],@piece.hex_box.anchor_hex[1])
+#    @puzzle_pattern.draw_pattern()
+    @hex_draw.draw_all_hexes()
+
+    @piece.construct_piece("p")
+
+    a = Math.floor(1+24*Math.random())
+    b = Math.floor(1+9*Math.random())
+    @piece.draw_piece_ab(a,b)
+    console.log("drawing piece at "+a+","+b)
+
+#    @piece.draw_piece_ab(@piece.hex_box.anchor_hex[0],@piece.hex_box.anchor_hex[1])
+
+#    @grid_model.get_offset(13,1,19,5)
 
 #    @hex_box.set_hex_box("j")
-
-#    @hex_draw.draw_all_hexes()
 
 #    @pixel_test = new PixelHexTester(this)
 #    @pixel_test.mark_hex_centerpoints()

  constructor: (piece) ->

    @piece = piece
    @metrics_report = true


  set_box_dimensions: () ->

    @piece_mask.draw_piece_pattern()
    @draw_piece(0,100)
    @cut_piece_from_photo()
    @draw_piece(0,0)


  cut_piece_from_photo: () ->
