update ball animation