change hands to arraylist instead of array
change hands to arraylist instead of array