Add playState and tests

Oh I see. Thanks.