Trouble using an arrayList.