save(data) {
        fs.writeFile('./games/data/' + this.name.toLowerCase() + '.json', JSON.stringify(data), (err) => {
            if (err) {
                console.log(err);
            }
        });
    }
/**
     * Saves the data of the game to a json file
     * @param {string} data 
     */
Saves the data of the game to a json file
@param {string} data
Saves the data of the game to a json file @param { string } data
save(data) {
        fs.writeFile('./games/data/' + this.name.toLowerCase() + '.json', JSON.stringify(data), (err) => {
            if (err) {
                console.log(err);
            }
        });
    }
save ( data ) { fs . writeFile ( './games/data/' + this . name . toLowerCase ( ) + '.json' , JSON . stringify ( data ) , ( err ) => { if ( err ) { console . log ( err ) ; } } ) ; }
Saves the data of the game to a json file
 @param {string} data
Saves the data of the game to a json file @param { string } data