private void startThread(final BasicView view) throws InterruptedException { final BasicPhysicsEngine game = this; while (true) { for (int i = 0; i < NUM_EULER_UPDATES_PER_SCREEN_REFRESH; i++) { game.update(); } view.repaint(); try { Thread.sleep(DELAY); } catch (InterruptedException e) { } } }