updated ball detector code

still need to debug