public static WaveData getWave(String pathToFile) {
        File file;
        if(Game.isRunningInIdea()) {
             file = new File("src/main/resources/" + pathToFile);
        }
        else{
            Console.log("outside IDE FOR WAVE");
            file = new File(pathToFile);
        }

        byte[] bfile = new byte[(int)file.length()];

        try(FileInputStream stream = new FileInputStream(file)) {
            stream.read(bfile);

        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }

        return WaveData.create(new ByteArrayInputStream (bfile));
    }