Learning to dribble a ball