private int animationToInt(AllEnum.AnimationCommands commands){
        if(commands == AllEnum.AnimationCommands.PUNCH1){
            return 1;
        }
        
        if(commands == AllEnum.AnimationCommands.PUNCH2){
            return 2;
        }
        
        if(commands == AllEnum.AnimationCommands.KICK1){
            return 3;
        }
        
        if(commands == AllEnum.AnimationCommands.PUSH1){
            return 4;
        }
        
        if(commands == AllEnum.AnimationCommands.PALM1){
            return 5;
        }
        
        if(commands == AllEnum.AnimationCommands.PUSHKICK1){
            return 6;
        }
        
        if(commands == AllEnum.AnimationCommands.RHKICK1){
            return 7;
        }
        
        if(commands == AllEnum.AnimationCommands.POWER1){
            return 8;
        }
        
        return 0;
    }