static void drawTextOverlay() {
        for (int i = 0; i < text.size(); i++) {
            countDowns.set(i, countDowns.get(i) - 1);
            if (countDowns.get(i) < 1) {
                text.remove(i);
                locations.remove(i);
                colors.remove(i);
                countDowns.remove(i);
            }
            else {
                painter.setColor(colors.get(i));
                painter.drawString(text.get(i), locations.get(i).x, locations.get(i).y);
            }
        }
    }