Made a Array List to test wtih.
First test on collapse. Looks good. Testing more cases.
Collapse works fine.