   constructor: (puzzle_app) ->
     @puzzle = puzzle_app
     @hex_box = @puzzle.hex_box
-    @piece_mask  = new PiecePattern(this)
+    @pattern  = new PiecePattern(this)
     @redraw = new PieceRedrawBuffer(this)
     @hexes = []
     @bounding_box = [0,0,0,0,]

      @pstring = response.pstring
      grid = get_pattern_grid(@pstring)
      @mask = new MissingPiecesMask(app, grid)
      @piece = new PuzzlePiece(app)
      app.pz_status.start_new_puzzle()
  xhr.send()


      if aa%2 != anchor_a%2
        if anchor_a%2 == 0 then yy = yy+10 else yy = yy-10
      @hex_draw.fill_hex_xy(xx,yy,"#000000")


  get_hexes: () ->
    hexes = []
    for bb in [1..10]
      for aa in [1..24]
        hexes.push([aa,bb]) if @grid[bb][aa] == @sym
    return hexes



