     @photo_picker = new PhotoPicker
     @photo = @photo_picker.pick_new_photo()
     @puzzle_xy = [100,30]
+    @reset()
+
+
+  reset: () ->
     @canvas = document.getElementById("puzzle-widget")
     @context_canvas = @canvas.getContext('2d')
     @context_canvas.fillStyle = "#999999"


  constructor: (puzzle_app) ->
    @puzzle = puzzle_app
    @ui_status = @puzzle.ui_status



    @puzzle = puzzle_app
    @hex_draw = @puzzle.hex_draw
    @canvas = document.getElementById("puzzle-widget")
    @dstring = @canvas.getAttribute("data-puzzle-pattern") # TODO This needs to be changed to get NEW pattern from server when there is a new puzzle.
    @grid = @get_pattern_grid(@dstring)


