@Override
	public void init(StandardBoard board) {
		this.width 	= board.getLayout().getWidth();
		this.height	= board.getLayout().getHeight();
		state = new int[8][8];
		for (int i = 0; i < 8; i++)
			for (int j = 0; j < 8; j++)
				state[i][j] = board.getLayout().getGrid()[i][j].getPieceColor();
		
	}