archived PH code, added multiple testing to fitness function.