more token logic?

more token passing logic, also not sure about final termination phase,
right now it's embedded inside the transmission phase as an if statement
if init_state == 3