Implement the CGBness Checking algorithm