Implement cutoff_test for AI