public void updateReportStatus(Game game) throws IOException {
        
         // input variable
        FileInputStream is = null;
        Scanner input = null;
        String getLine = "";

        // writer file
        Writer writerTeamA = null;
        Writer writerTeamB = null;
        // Update bet file for team A
      
        File f = new File(this.file_teamA_status);
        if (f.exists() && !f.isDirectory()) {
            // team A
            writerTeamA = new BufferedWriter(new FileWriter(new File(file_teamA_status)));
            // write bet report team A
            // insert team Name of each team
            writerTeamA.write(game.getSetting().getNameTeamA() + "\n");
          // insert point
            writerTeamA.write(game.getTeamA().getPoint()+ "\n");
           // insert numOfTank
            int numOfTank = game.getTeamA().getNumOfTank();
            writerTeamA.write(numOfTank + "\n");
          // write tank info
            for (int i =0; i < numOfTank; i ++) {
                writerTeamA.write (  game.getTeamA().getTanks()[i].getAmor() + " " + game.getTeamA().getTanks()[i].getDamange()+" " +game.getTeamA().getTanks()[i].getAttackRange()+" ");
                 writerTeamA.write (  game.getTeamA().getTanks()[i].getPosition().getX()+" "+ game.getTeamA().getTanks()[i].getPosition().getY()+"\n" );
            }
                
            // team B
            
            // insert team Name team V
         //   writerTeamA.write(game.getSetting().getNameTeamB() + "\n");
          // insert point
            writerTeamA.write(game.getTeamB().getPoint()+ "\n");
           // insert numOfTank
              numOfTank = game.getTeamB(). getNumOfTank();
            writerTeamA.write(numOfTank + "\n");
          // write tank info
            for (int i =0; i < numOfTank; i ++) {
                writerTeamA.write (  game.getTeamB().getTanks()[i].getAmor() + " " + game.getTeamB().getTanks()[i].getDamange()+" "+ game.getTeamB().getTanks()[i].getAttackRange()+" ");
                 writerTeamA.write (  game.getTeamB().getTanks()[i].getPosition().getX()+" "+ game.getTeamB().getTanks()[i].getPosition().getY()+"\n" );
            }
            
             writerTeamA.close();
         
        }
        // TEAM B
         f = new File(this.file_teamB_status);
        if (f.exists() && !f.isDirectory()) {
            // team B
            writerTeamB = new BufferedWriter(new FileWriter(new File(file_teamB_status)));
            // write bet report team A
            // insert team Name of each team
            writerTeamB.write(game.getSetting().getNameTeamB() + "\n");
          // insert point
            writerTeamB.write(game.getTeamB().getPoint()+ "\n");
           // insert numOfTank
            int numOfTank = game.getTeamB().getNumOfTank();
            writerTeamB.write(numOfTank + "\n");
          // write tank info
            for (int i =0; i < numOfTank; i ++) {
                writerTeamB.write (  game.getTeamB().getTanks()[i].getAmor() + " " + game.getTeamB().getTanks()[i].getDamange()+" "+ game.getTeamB().getTanks()[i].getAttackRange()+" ");
                 writerTeamB.write (  game.getTeamB().getTanks()[i].getPosition().getX()+" "+ game.getTeamB().getTanks()[i].getPosition().getY()+"\n" );
            }
                
            // team A
            
            // insert team Name team A
        //    writerTeamB.write(game.getSetting().getNameTeamA() + "\n");
          // insert point
            writerTeamB.write(game.getTeamA().getPoint()+ "\n");
           // insert numOfTank
              numOfTank = game.getTeamA().getNumOfTank();
            writerTeamB.write(numOfTank + "\n");
          // write tank info
            for (int i =0; i < numOfTank; i ++) {
                writerTeamB.write (  game.getTeamA().getTanks()[i].getAmor() + " " + game.getTeamA().getTanks()[i].getDamange()+" "+  game.getTeamA().getTanks()[i].getAttackRange()+" ");
                 writerTeamB.write (  game.getTeamA().getTanks()[i].getPosition().getX()+" "+ game.getTeamA().getTanks()[i].getPosition().getY()+"\n" );
            }
            
             writerTeamB.close();
           
        // file of Team B
        
        }
        
    }