change state machine of fap_free.v.