 (defn- get-stash
   "Gets the current stash"
   [game]
-  (or
-    (get-in game ["battle" "stash" "p1"])
-    (get-in game ["battle" "stash" "p2"])))
+  (println game)
+  (if (empty? (get-in game ["battle" "stash" "p1"]))
+    (get-in game ["battle" "stash" "p2"])
+    (get-in game ["battle" "stash" "p1"])))
 
 (defn- game-stash
   "Shows the current stash if available"

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

  (let [action (reader/read-string (get-action))
        current-actions (or (state/get-state :current-actions) [])
        new-actions (conj current-actions action)
        player-code "p2"
        game (-> (state/get-state :original-game-data)
                 (assoc :actions new-actions)
                 (assoc :p2-focused-board (= player-code "p2"))
                 (assoc :action-focus player-code))
        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
