private int bestMove(int rm,int rw, int pm, int pw, int sm, int sw){
        int bestMove = 0;
        ArrayList<Double> move = new ArrayList<>();
        if(rm!=0||rw==0){
            move.add((double)rw/(double)rm);
        }
        if(pm!=0||pw==0){
            move.add((double)pw/(double)pm);
        }
        if(sm!=0||sw==0){
            move.add((double)pw/(double)pm);
        }
        if(move.size()>0){
            for(int i = 0;i<move.size()-1;i++){
                if(move.get(i)<move.get(i+1)){
                    bestMove = i+1;
                }
            }
            return bestMove+1;
        }else{
            return new Random().nextInt(3);
        }
    }