added problem solver to compute end result of the selected balls