adds question traversal logic to state