y threshold for detecting balls