arraylist implementation for dice