Need to rewrite the constructor for ball.java