ball moving implementation