@Override
    public void play() throws IOException, InterruptedException {
        List<BufferedImage> frames = new ArrayList<>();
        BufferedImage frame = null;
        for (int i=0;i<500;i++) {
            frame = grab.getFrame();
            frames.add(frame);
        }
//        while ((frame = grab.getFrame()) != null) {
//            frames.add(frame);
//        }
        
        ConsoleReader r = new ConsoleReader();
        for (BufferedImage img: frames) {
            PlayerUtils.write(img);
//            Thread.sleep(20);
            r.clearScreen();
        }
    }