adding states and output colors for each state.