Ball detection implemented.