 (defun vimgolf-submit ()
   "Stop the challenge and attempt to submit the solution to VimGolf."
   (interactive)
-  (vimgolf-stop-capture-keystrokes)
+  (vimgolf-enable-capture nil)
   (if (vimgolf-solution-correct-p) (vimgolf-right-solution) (vimgolf-wrong-solution)))
 
 (defun vimgolf-clear-keystrokes ()

        (switch-to-buffer vimgolf-work-buffer)
        (setq vimgolf-working-window-configuration (current-window-configuration))

        (vimgolf-capture-keystrokes)))))

;;; vimgolf.el ends here

  (if (get-buffer vimgolf-start-buffer-name) (kill-buffer vimgolf-start-buffer-name))
  (if (get-buffer vimgolf-work-buffer-name) (kill-buffer vimgolf-work-buffer-name))
  (if (get-buffer vimgolf-end-buffer-name) (kill-buffer vimgolf-end-buffer-name))
  (vimgolf-enable-capture nil)
  (set-window-configuration vimgolf-prior-window-configuration)
  (message "I declare you, n00b!"))

