public BoardPanel(UserInterface GUI) {
		
		ourGUI = GUI;
		
		colorToPlay = -1;
		
		this.setSize(680, 680);
		this.addMouseListener(this);
		this.addMouseMotionListener(this);
		this.setLayout(null);
		
		try {
			backgroundImage = ImageIO.read(new File("images/chessboard.jpg"));
			blackPieceImage = ImageIO.read(new File("images/blackpiece.png"));
			whitePieceImage = ImageIO.read(new File("images/whitePiece.png"));
		} catch (IOException e) {
            e.printStackTrace();
        }
		
		chessboardLabel.setSize(680, 680);
		chessboardLabel.setIcon(new ImageIcon(backgroundImage));
		this.add(chessboardLabel, new Integer(0));
		
		for (int q = 1; q < 7; q++) {
			viewChecker(0, q, whitePieceImage);
			viewChecker(7, q, whitePieceImage);
			viewChecker(q, 0, blackPieceImage);
			viewChecker(q, 7, blackPieceImage);
		}
	}