debugged ball titector. works great.