Maximize Value of Function in a Ball Passing Game