     (state/set-state :processing-action actions)
     (PUT url {:params {:actions actions}
               :format :json
-              :handler action-added
+              :handler game-deployed
               :error-handler error-loading-action})))
 
 (defn- add-action

  "Renders a board's cell"
  [game x y]
  (let [coordCode (str "[" x " " y "]")
        element (get-in game ["battle" "elements" coordCode])
        css (get-element-css game element)]
    (dom/td #js {:className css}
      (dom/p #js {:className "boardCoords"} coordCode)

  "Error loading action"
  []
  (state/set-state :processing-action nil))

(defn- game-deployed
  "After the game was deployed"
  [data]
  (println (state/get-state :game-data))
  (println "--game deployed")
  (println 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"
