added array and class to gravity ball