Fixed bug in chooseOutcome() where the result changed if the input factors were ordered differently!