now can detect green ball too