 
   dot: (x,y) ->
     hex = @puzzle.events.piece_drag.get_piece_hex_position(x,y)
-#    hex = @grid_model.get_hex(x,y)
     if hex[0] > 0 and hex[0] < 25 and hex[1] > 0 and hex[1] < 11
       color = @get_dot_color(hex)
       @put_dot(x,y,color)

    @redraw.reset_size(wd_ht[0],wd_ht[1])

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


  cut_piece_from_photo: () ->

    y = py-dy

    console.log("mouse click: "+x+","+y)
    @puzzle.pixel_test.big_dot(x,y) if @show_clicks == true
    hex = @piece_drag.get_piece_hex_position(x,y)
    console.log("A*,B* ~= "+hex[0]+","+hex[1])
    @puzzle.piece.draw_piece_ab(hex[0],hex[1])



