ok so if i want to update the score i would have to call the ball class in the world class, right?
No. You would call a method in your MyWorld class from the Ball class when scoring. Calling the method to update the scoreboard can be done from either class.