 
 
   next_piece: () ->
-    @puzzle.mask.reset_mask()
+    console.log "CALL reset_mask() from next_piece"
+    @puzzle.mask.reset_mask(@puzzle.grid)
     @puzzle.indicator.decrement()
     pc = Math.floor(@pieces_in_puzzle*Math.random())
     @sym = @unset_pieces[pc]



@mousedown = (e) ->
  app.events.handle_mousedown(e)


@mouseup = (e) ->
  app.events.handle_mouseup(e)


@mousemove = (e) ->
  app.events.handle_mousemove(e)


get_puzzle_pattern = (app) ->

    @colors = new ColorRotation
    @indicator = new Indicator(this)
    @grid_model = new PuzzleGridModel(this)
    @mask = new MissingPiecesMask(this)
    get_puzzle_pattern(this)


