Update ballLogic