altered 3 state fsm to randomly switch between the two remaining states instead of cycling in 1-2-3 order