fixed solution finding bug. it was a deep vs shallow copy problem of arraylist