finished preprocessor, added validation to randomized choice
used preprocessor, better tests for chance function