   (render
     [this pixel]
     (do
-      #_(log/warn pixel bombs)
-      color/yellow)))
+      (if (compare-and-set! log-next true false)
+        (log/warn edge (edges-lookup (edges edge))))
+      (if (is-on pixel (edges edge))
+        color/yellow
+        color/none))))
 
 
 (defn init
   "Creates a new worms mode with starting parameters"
   ([]
-   (init {:from_node 0 :to_node 1 :age 0}))
-  ([worm]
-   (WormsMode. worm)))
+   (init 0))
+  ([edge]
+   (WormsMode. edge (atom false) false)))

    [playasophy.wonderdome.util.color :as color]
    [playasophy.wonderdome.util.control :as control]))


(defrecord WormsMode
  [worm]

  mode/Mode


;              11
;             /   \
;            /     \
;           6-------2
;          /|\     /|\
;         / |  \  / | \
;       10  |   1   |  7
;         \ |  /|\  | /
;          \|/  |  \|/
;           5---4---3
;           |  / \  |
;           |/     \|
;           9       8


(ns playasophy.wonderdome.mode.worms
  (:require
    [clojure.tools.logging :as log]
