public void pause(int steps) throws InterruptedException { component.repaint(); Thread.sleep(steps * DELAY); }