the hmm calc_probability function now seems to work! it has passed 1 test