private void initializePieces(){
		int startPoint = (getBoardColumns()-8)/2;

		for(int i = startPoint; i < (startPoint+8); i++){
			ChessPiece pawn0 = new Pawn(getBoardRows()-2, i, 0);
			ChessPiece pawn1 = new Pawn(1, i, 1);
			getSquares()[1][i].changeSquarePiece(pawn1);
			getSquares()[getBoardRows()-2][i].changeSquarePiece(pawn0);
			
			ChessPiece piece0;
			ChessPiece piece1;
			if(i == startPoint || i == startPoint+7){
				piece0 = new Rook(getBoardRows()-1, i, 0);
				piece1 = new Rook(0, i, 1);
			}				
			else if(i == startPoint+1 || i == startPoint+6){
				piece0 = new Knight(getBoardRows()-1, i, 0);
				piece1 = new Knight(0, i, 1);
			}
			else if(i == startPoint+2 || i == startPoint+5){
				piece0 = new Bishop(getBoardRows()-1, i, 0);
				piece1 = new Bishop(0, i, 1);
			}
			else if(i == startPoint+3){
				piece0 = new Queen(getBoardRows()-1, i, 0);
				piece1 = new Queen(0, i, 1);
			}
			else if(i == startPoint+4){
				piece0 = new King(getBoardRows()-1, i, 0);
				piece1 = new King(0, i, 1);
				setPlayer0King((King) piece0);
				setPlayer1King((King) piece1);
			}
			else{
				piece0 = null;
				piece1 = null;
			}
			
			getSquares()[getBoardRows()-1][i].changeSquarePiece(piece0);
			getSquares()[0][i].changeSquarePiece(piece1);
		}
		
		resetValidMoves();
	}