use 'type' rather than 'state' and add built-in your-turn and section states