showtrainCommand(command) {
        //show info and start highligthing command to train
        let infotext = document.getElementById("infotext");
        let cmdindex = this.state.commands.indexOf(command);
        let text = this.state.commandinfos[cmdindex];
        infotext.innerText = text;
        window.responsiveVoice.speak(text);
        //reset all icons to default color
        let cmdIcons = document.getElementsByClassName("cmd");
        for (let i = 0; i < cmdIcons.length; i++) {
            cmdIcons[i].style.color = "#17394b";
        }
        //highlight current training cmd icon
        let cmdIcon = document.getElementById(command).getElementsByClassName("fa")[0];
        cmdIcon.style.color = "#ffffff";
        //start progressBar for cmd
        this.move(command);
    }
//show training of command x in gui
show training of command x in gui
show training of command x in gui
showtrainCommand(command) {
        let infotext = document.getElementById("infotext");
        let cmdindex = this.state.commands.indexOf(command);
        let text = this.state.commandinfos[cmdindex];
        infotext.innerText = text;
        window.responsiveVoice.speak(text);
        let cmdIcons = document.getElementsByClassName("cmd");
        for (let i = 0; i < cmdIcons.length; i++) {
            cmdIcons[i].style.color = "#17394b";
        }
        let cmdIcon = document.getElementById(command).getElementsByClassName("fa")[0];
        cmdIcon.style.color = "#ffffff";
        this.move(command);
    }
showtrainCommand ( command ) { let infotext = document . getElementById ( "infotext" ) ; let cmdindex = this . state . commands . indexOf ( command ) ; let text = this . state . commandinfos [ cmdindex ] ; infotext . innerText = text ; window . responsiveVoice . speak ( text ) ; let cmdIcons = document . getElementsByClassName ( "cmd" ) ; for ( let i = 0 ; i < cmdIcons . length ; i ++ ) { cmdIcons [ i ] . style . color = "#17394b" ; } let cmdIcon = document . getElementById ( command ) . getElementsByClassName ( "fa" ) [ 0 ] ; cmdIcon . style . color = "#ffffff" ; this . move ( command ) ; }
show training of command x in gui
show training of command x in gui
//show info and start highligthing command to train //reset all icons to default color //highlight current training cmd icon //start progressBar for cmd