Implement state machine processing of input and display main goals colored