made f_hash and explored store states. added hashfunction to state.