Program is now fully functioning, printing out probabilities for a single given trial pattern