     for bb in [1..10]
       for aa in [1..24]
         hexes.push([aa,bb]) if @puzzle.puzzle_pattern.grid[bb][aa] == @sym
-    console.log("PIECE ID: "+@sym)
-    console.log("    "+hx[0]+","+hx[1]) for hx in hexes
-    hexes
+    if @log_hexes == true
+      console.log("PIECE ID: "+@sym)
+      console.log("    "+hx[0]+","+hx[1]) for hx in hexes
+    return hexes
 
 
 

    @mask = new MissingPiecesMask(this)
    @piece = new PuzzlePiece(this)


#    @puzzle_pattern.draw_pattern()
#    @hex_draw.draw_all_hexes()
    @hex_draw.fill_all_hexes()

    pieces = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p"]
    pc = Math.floor(16*Math.random())

    @hexes = []
    @box_xy = [null,null]
    @corner_fit = "unknown"
    @metrics_report = false


  set_hex_box: (piece_symbol) ->
