public void calGraphicBoardArray(){

		h = this.getHeight();
		w = this.getWidth();
		int hp = h/11;
		int sqNo = 1;


		squares = new Square [8][8];

		for (int row = 0; row < 8; row++){
			for (int col = 0; col < 8; col++){
				//if row number is even
				if (row%2 == 0){
					//if column number is even
					if (col%2 == 0){
						squares[row][col] = new WhiteSquare((col * hp), (row * hp), hp, hp, row, col);
					}
					//column is odd
					else{
						squares[row][col] = new BlackSquare((col * hp), (row * hp), hp, hp, row, col, sqNo);
						sqNo++;
					}	
				}
				//row number is odd
				else{
					//if column number is even
					if (col%2 == 0){
						squares[row][col] = new BlackSquare((col * hp), (row * hp), hp, hp, row, col, sqNo);
					}
					//column is odd
					else{
						squares[row][col] = new WhiteSquare((col * hp), (row * hp), hp, hp, row, col);
						sqNo++;
					}	
				}
			}
		}
	}