Finished markov alg getResult(state). To simulation it dynamic.