public static String posibilP(int i) {
        String list="";
        int r=i/8, c=i%8; //r-rand c-coloana
        for (int j=-1; j<=1; j+=2) {
        	try {//mutare pion o casuta
                if (" ".equals(chessBoard[r-1][c]) && i>=16) {
                    chessBoard[r][c]=" ";
                    chessBoard[r-1][c]="P";
                   
                    chessBoard[r][c]="P";
                }
            } catch (Exception e) {}
        	try {//mutare pion 2 casute
                if (" ".equals(chessBoard[r-1][c]) && " ".equals(chessBoard[r-2][c]) && i>=48) {
                    chessBoard[r][c]=" ";
                    chessBoard[r-2][c]="P";
                    chessBoard[r][c]="P";
                    }
            } catch (Exception e) {}
        }
        return list;
    }