Im using a LinkedList and I am getting a "No such element exception". I think the problem occurs when multiple threads are trying to enter the while loop and the a