function drawBall(time) but here no arg is passed, did you pass a default value?