- setDirection method for Ball