@Override
	public void keyPressed(int key) {
		if (key == KeyEvent.VK_LEFT)
			moveX = -1;
		else if (key == KeyEvent.VK_RIGHT)
			moveX = 1;
		else if (key == KeyEvent.VK_UP)
			moveY = -1;
		else if (key == KeyEvent.VK_DOWN)
			moveY = 1;
		else if (key == KeyEvent.VK_D)
			m.dispose();
		else if (key == KeyEvent.VK_I)
			System.out.println(m.intersects(s));
	}