"""
Although there's only three states set up here, there should be no hard limit
on the number of states available to the application - to have more than three
states, simply override these constants.
"""

class States(object):
    DEACTIVATED = 0
    FIRST = 1
    SECOND = 2


Colours = {
    States.DEACTIVATED: (0.5, 0.5, 0.5, 1),
    States.FIRST: (1, 1, 1, 1),
    States.SECOND: (0, 0, 0, 1),
}

@@ -222,16 +222,33 @@
 bject):%0A
+    ILLEGAL = -1%0A
     DEAC
@@ -259,16 +259,16 @@
 TED = 0%0A
-
     FIRS
@@ -302,16 +302,57 @@
 urs = %7B%0A
+    States.ILLEGAL: (1, 0, 0, 1),  # Red%0A
     Stat
@@ -382,24 +382,32 @@
 .5, 0.5, 1),
+  # Grey
 %0A    States.
@@ -426,16 +426,25 @@
 , 1, 1),
+  # Black
 %0A    Sta
@@ -468,11 +468,20 @@
 , 0, 1),
+  # White
 %0A%7D%0A

Add an ILLEGAL state