made balls appear using arraylist