new algorithm

new ball chasing algorithm