package game;

import javax.swing.JFrame;

public class Game extends JFrame implements Runnable {
  private Thread thread;
  private Screen screen;
  private boolean running = false;

  public Game() {
    super("Game Loop");

    screen = new Screen();
    add(screen);

    pack();
    setLocationRelativeTo(null);
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    setVisible(true);
  }

  @Override
  public void run() {

  }

  public synchronized void start() {

  }
}

@@ -462,19 +462,305 @@
 d start() %7B%0A
+    if (running) return;%0A    running = true;%0A    thread = new Thread(this);%0A    thread.start();%0A  %7D%0A%0A  public synchronized void stop() %7B%0A    if (!running) return;%0A    running = false;%0A    try %7B%0A      thread.join();%0A    %7D catch (InterruptedException e) %7B%0A      e.printStackTrace();%0A    %7D
 %0A  %7D%0A%7D%0A

Create start/stop methods