public void updateBalls()
    {
        for (int i = 0; i < balls.size(); i++)
        {
            Ball b = balls.get(i);
            b.display();
            b.move();
            if (b.getX() > Animation.WALL_LEN + Animation.WALL_WID)
            {
                balls.remove(b);
                readyForBall = true;
                t2.addWaitingBall();
            }
        }
        while (readyForBall && t1.takeWaitingBall())
        {
            // Find x for ball that is closest to t1
            double x = Animation.WALL_LEN + Animation.WALL_WID;
            for (Ball b : balls)
            {
                if (b.getX() < x)
                {
                    x = b.getX();
                }
            }

            addNewBall(x - (Animation.WALL_LEN + Animation.WALL_WID) / (double)maxBalls);
            if (balls.size() >= maxBalls)
            {
                readyForBall = false;
            }
        }
    }