AVALANCHE: Add a default value to color in state(), remove dead code