         new-actions (conj actions current-action)
         current-game (state/get-state :game-data)
         updated-game (assoc current-game "board" (or (get data "p2-focused-board") (get data "board")))]
-    (println updated-game)
     (state/set-state :game-data updated-game)
     (state/set-state :current-actions new-actions)
     (state/set-state :processing-action nil)

    (cond
      (state :processing-action) "disabled"
      (not= "deploy" (get-in state [:original-game-data "board" "state"])) "disabled"
      (empty? (get-in state [:game-data "board" "stash" player-code])) ""
      :else "disabled")))

(defn- render-action-console
  "Renders the action management console"

        jsgame (js/encodeURIComponent (.stringify js/JSON (clj->js game)))
        url (str "http://rules.api.orionsbelt.eu/game/turn/" player-code "?context=" jsgame)]
    (state/set-state :processing-action action)
    (GET url {:handler action-added
              :error-handler error-loading-action})))

