Gravity Ball as OOP with arrays