public void testBallCatch() { for (int i = 0; i < balls.size(); i++) { if (bucket.contains(balls.get(i))) { if (balls.get(i).isGood()) points++; else lives--; balls.remove(i); i--; } else if (balls.get(i).getLocation().getY() >= HEIGHT + Ball.RADIUS) { if (balls.get(i).isGood()) lives--; balls.remove(i); i--; } } }