Moved evolution function into EA container class