Java Arraylist Check If Ai Is Detected