public void addComand(Commands command)
 {
     this.commands[command.command] = command;
     jsonFileHandler.writeCommands(commands);
     main.commands = commands;
 }