click the flag and don't let the balls touch the red line. If one ball touches the red line keep focused on the other ball because that ball will keep moving.
ideas from my other project bounce.