import java.awt.*; import javax.swing.*; import java.awt.event.*; public class Game extends JFrame { World world; public Game() { this.world = new World(this); add(world); setSize(200, 400); setTitle("Tetris"); setDefaultCloseOperation(EXIT_ON_CLOSE); world.start(); } public static void main(String[] args) { Game game = new Game(); game.setVisible(true); } }