implemented state machine
character state contained in a state machine