public void drawWalls() {
    Level l = levels.get(0);

    if (l.isLapRace()) {
      // draw the walls for the lap race
      for (int i = 0; i < lapWalls.size(); i++) {
        Wall w1 = lapWalls.get(i);

        // always set to the identity
        try {
          g2d.setTransform(identity);
        }
        catch (NullPointerException e) { }

        // draw the walls
        w1.paint(g2d);
      }
    }
    else {
      // draw the walls for the demo derby race
      for (int i = 0; i < demoWalls.size(); i++) {
        Wall w1 = demoWalls.get(i);

        // always set to the identity
        try {
          g2d.setTransform(identity);
        }
        catch (NullPointerException e) { }

        w1.paint(g2d);
      }
    }
  }