implement add ball functionality