Working on changing state and number of connections to calculate probabilities