The judges give the ball to anyone who touches them the most through their performance. It is completely up to the judges and not based on scores or votes and is given right after the performance, so that audience doesn't have to vote that day for that contestant.