Added new algorithm for doing ball scan lines