title: Adding polygons to a scene with from an arraylist
body: <p>I'm trying to add a new polygon to an existing scene, but it doesn't appear. is this a problem with the triangle not being visible or is it not being added to the scene.</p>
  
  <pre class="lang-java prettyprint-override"><code>if (enemyPoints == 5) {
   enemyPoints = enemyPoints - 5;
   triangles.add(new Polygon(30, 10, 54));
   System.out.println("triangle made");
   triangles.get(k).setFill(Color.RED);
   triangles.get(k).setLayoutX(5);
   triangles.get(k).setLayoutY(5);
   root.getChildren().add(triangles.get(k));
   k++;
  }
  </code></pre>