AVALANCHE: Use the Color enum, remove some magic values, identify some dead variables