@Override public void run() { this.setVisible(true); toUIThread.setToInterface(this); while (!goButtonPressed) { try { Thread.sleep(1000); } catch (java.lang.InterruptedException error) { System.out.println("BLAM! SLEEP EXCEPTION!"); } } startGame(); }