public void saveBoard(Board b){
       	FileWriter fichero = null;
        PrintWriter pw = null;
        try{
            fichero = new FileWriter("savedBoard.txt");
            pw = new PrintWriter(fichero);                   						
            for (int i = 0; i < 8; i++){
            	for (int j = 0; j < 8; j++){
            		pw.print(b.get(i, j)+" ");
                }
                pw.println("");
			} 
        }catch (Exception e) {
                e.printStackTrace();
        } finally{
               try{
            	   if (null != fichero) // I make sure to close the file
            		   fichero.close();
               }catch (Exception e2) {
                  e2.printStackTrace();
               }
        }
    } // end saveBoard