more work on the competitions script to allow multiple runs, wrote initial script to plot the proportions of A and B