add doc and nextState for play state