update ball class, add speed param