changed checkforPalindrome to return an arrayList, this seems wrong. will try to have it return a map instead