Added a random color transition
Made state machine more complete.