gets ball moving, bouncing off boundaries