Implemented states nextState function with paper probabilities.