public GameCourt(JLabel status) {
		// creates border around the court area, JComponent method
		setBorder(BorderFactory.createLineBorder(Color.BLACK));
		

		// The timer is an object which triggers an action periodically
		// with the given INTERVAL. One registers an ActionListener with
		// this timer, whose actionPerformed() method will be called
		// each time the timer triggers. We define a helper method
		// called tick() that actually does everything that should
		// be done in a single timestep.
		timer = new Timer(INTERVAL, new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				tick();
			}
		});
		timer.start(); // MAKE SURE TO START THE TIMER!

		// Enable keyboard focus on the court area.
		// When this component has the keyboard focus, key
		// events will be handled by its key listener.
		setFocusable(true);

		// This key listener allows the square to move as long
		// as an arrow key is pressed, by changing the square's
		// velocity accordingly. (The tick method below actually
		// moves the square.)
		
//		addKeyListener(new KeyAdapter() {
//			public void keyPressed(KeyEvent e) {
//				if (!fruit.isStopped) {
//					if (e.getKeyCode() == KeyEvent.VK_LEFT)
//						fruit.v_x = -FRUIT_VELOCITY;
//					else if (e.getKeyCode() == KeyEvent.VK_RIGHT)
//						fruit.v_x = FRUIT_VELOCITY;
//					else if (e.getKeyCode() == KeyEvent.VK_DOWN)
//						fruit.v_y = FRUIT_VELOCITY * 2;
//				}
//
//				// TODO: make it rotate
//				// else if (e.getKeyCode() == KeyEvent.VK_UP)
//				// fruit.v_y = -SQUARE_VELOCITY;
//			}
//
//			public void keyReleased(KeyEvent e) {
//				if (!fruit.isStopped) {
//					// falls straight down if no key
//					fruit.v_x = 0;
//					fruit.v_y = FRUIT_VELOCITY;
//				}
//			}
//		});

		this.status = status;
	}