Created a forward function so that I could iteratively send observations to the HMM