generate path through states based on signal