added second set of variables for second ball