public void Update() { for (Vec2 pos : AddingPositions) { int colorIndex = (int) Math.round(Math.random() * (balloonColors.size() - 1)); TryAddBalloonAt(pos, new Vec2(0, 1), balloonColors.elementAt(colorIndex)); } for (Balloon b : Balloons) { b.Update(); } RemoveBalloonsOutsideOfCanvas(); }