         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)

        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)
    (println (.stringify js/JSON (clj->js new-actions)))
    (GET url {:handler action-added
              :error-handler error-loading-action})))


(defn- game-deployed
  "After the game was deployed"
  [data]
  (state/set-state :game-data data)
  (state/set-state :current-actions nil)
  (state/set-state :processing-action nil))

(defn- deploy-game
  "Deploys a game"
