made a ball bounce back and forth