public Sound2D()
  {
    rand = new Random();
    try
    // Trying to load zombie sfx
    {
      File moanFile = new File("src/sounds/ZombieMoan.wav");
      AudioInputStream stream = AudioSystem.getAudioInputStream(moanFile);
      zombieFormat = stream.getFormat();
      byte[] array = getSamples(stream);
      zombieSample = new short[array.length / 2];
      for (int i = 0; i < zombieSample.length; i++)
      {
        zombieSample[i] = getSample(array, i * 2);
      }
    } catch (UnsupportedAudioFileException ex)
    {
      ex.printStackTrace();
    } catch (IOException ex)
    {
      System.out.println("Zombie Sound File does not exist; turning off sfx");
      sfx = false;
    }
    try
    // Trying to load fire sfx
    {
      File blastFile = new File("src/sounds/FireBlast.wav");
      AudioInputStream stream = AudioSystem.getAudioInputStream(blastFile);
      fireFormat = stream.getFormat();
      byte[] array = getSamples(stream);
      fireSample = new short[array.length / 2];
      for (int i = 0; i < fireSample.length; i++)
      {
        fireSample[i] = getSample(array, i * 2);
      }
    } catch (UnsupportedAudioFileException ex)
    {
      ex.printStackTrace();
    } catch (IOException ex)
    {
      System.out.println("Fire Sound File does not exist; turning off sfx");
      sfx = false;
    }
    File footFile = new File("src/sounds/footstep");
    stepArray = footFile.listFiles();
  }