   (re-frame/dispatch [:simulator/update-code evt.target.value]))
 
 (defn- on-step-click! [evt state]
-  (ws/send-message :process-simulation-frame {:game-state state}))
+  (ws/send-message :process-simulation-frame {:game-state @state}))
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ;; Helper methods

  [:div "OUTPUT"])

(defn- render-tabbed-container [state]
  #_(prn state)
  #_(js/console.log (or (get-player-code state) ""))
  [tabbed-container {:tabs [{:label "CODE"
                             :markup (render-code-tab state)}
                            {:label "OUTPUT"


(defn- render! [initialized? state templates wombats]
  (when (and (not @initialized?) @templates @wombats)
    (initialize-simulator! templates wombats))

  [:div {:class-name "simulator-panel"}
   [render-left-pane! state]
