public void checkVictoryConditions() {
    // get info on level
    Level l = levels.get(0);

    // if lap race
    if (l.isLapRace()) {
      for (int i = 0; i < sprites.size(); i++) {
        PlayerSprite s = sprites.get(i);

        if (s.getCompletedLaps() >= l.getNumLaps()) {

          /////////////////
          // PLAYER WINS //
          /////////////////

          // System.out.println("Winner: " + (i + 1));

          victory = true;

          winId = i;
        }
      }
    }
    else {
      if (l.damageIsOn()) {

        int survivors = 0;

        PlayerSprite winner;

        for (int i = 0; i < sprites.size(); i++) {
          PlayerSprite s = sprites.get(i);

          if (!s.isWreck()) {
            winner = s;
            winId = i;
            survivors++;
          }
        }

        if (survivors == 1) {

          /////////////////
          // PLAYER WINS //
          /////////////////

          // System.out.println("Winner: " + (winId + 1));

          victory = true;

        }
      }
    }
  }