Changed the function to see which player is closest to the ball. Also removed the cout calls that cluttered the console.