Modified the addition and removal of Integer positions to the currentSet arraylist, since ArrayList.remove(int a) removes the object at position a; it was throwing an out of bounds exception.