public MainView(Piece[][] board){
			this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
			this.setBounds(0, 0, 1150, 870);
			boardPane = new JLayeredPane();
			boardPane.setBounds(100, 100,800,800);
			getContentPane().add(boardPane);
			
			this.addMainMenuBar();
			
			chessBoard = new JPanel();
			chessBoard.setLayout( new GridLayout(8, 8) );
			chessBoard.setBounds(0, 0, 800,800);
			boardPane.add(chessBoard, JLayeredPane.DEFAULT_LAYER);

			for(int i=7; i>=0; i--){
				for(int j=0; j<=7; j++){
					Square square = new Square(j,i);					
					if((j % 2==0 && i % 2 != 0) || (j% 2!=0 && i%2 ==0)){
						square.setBackground(Color.GRAY);
						square.setBackColor(Color.GRAY);
					}else{
						square.setBackground(Color.WHITE);
						square.setBackColor(Color.WHITE);
					}
					chessPiece = new ChessPiece(board[i][j].getType(), board[i][j].getColor());					
					square.add(chessPiece);
					chessBoard.add( square );
				}
			}
			/*
			int pawnCount = 0;
			Square pawnSquare = new Square();
			outBoard = new JPanel();
			outBoard.setLayout(new GridLayout(16,2));
			outBoard.setBounds(810, 10, 300, 790);
			boardPane.add(outBoard, JLayeredPane.DEFAULT_LAYER);
			for(int i=7; i>=0; i--){
				for(int j=0; j<=7; j++){
					Square square = new Square(j,i);					
					if(board[i][j].getType()!=null){
						if(board[i][j].getType()=="Pawn"){
							if(pawnCount==0){
								chessPiece = new ChessPiece(board[i][j].getType(), board[i][j].getColor());	
								square.add(chessPiece);
								pawnSquare = square;
								pawnCount++;
							}else{
								pawnCount++;
							}
						}
						//chessPiece = new ChessPiece(board[i][j].getType(), board[i][j].getColor());	
						//square.add(chessPiece);
						//outBoard.add( square );
					}
				}
			}
			pawnSquare.add(new JLabel(""+pawnCount+""));
			outBoard.add( pawnSquare );
			*/
			this.setVisible(true);
			
		}