Fixed the transition probabilities by including a lot of if's
Very ugly but works. Produces the wanted 1088 transitions.