public void draw(Graphics g, JPanel p, int x, int y, int height, int width) {
		Image img = null;
		if(getModel() == null)
		{
			try {
				img = ImageIO.read(new File("empty.jpg"));
				g.drawImage(img, x, y, p);
			} catch (IOException e) {
				e.printStackTrace();
			}
		}
		else
		{
			if (((Pion)getModel()).getPion() == 'X') {
				try {
					img = ImageIO.read(new File("cross.jpg"));
					g.drawImage(img, x, y, p);
				} catch (IOException e) {
					e.printStackTrace();
				}
			}
			else if (((Pion)getModel()).getPion() == 'O')
			{
				try {
					img = ImageIO.read(new File("round.jpg"));
					g.drawImage(img, x, y, p);
				} catch (IOException e) {
					e.printStackTrace();
				}
			}
		}
	}