public static void colorButton(int[] btnFrom, int[] btnTo, int mode) {
        int row, col;
        int larger, smaller;
        myButton myBtn;
        if (btnFrom[0] == btnTo[0]) {
            row = btnFrom[0];
            if (btnFrom[1] > btnTo[1]) {
                larger = btnFrom[1];
                smaller = btnTo[1];
            } else {
                larger = btnTo[1];
                smaller = btnFrom[1];
            }
            for (int i = smaller; i <= larger; i++) {
                myBtn = Grid5.buttons[row][i];
                if(mode==1) {
                    myBtn.setBackground(SwitchColor.activeChoice(myBtn));
                } else{
                    myBtn.setBackground(SwitchColor.deactiveChoice(myBtn));
                }
            }
        } else {
            col = btnFrom[1];
            if (btnFrom[0] > btnTo[0]) {
                larger = btnFrom[0];
                smaller = btnTo[0];
            } else {
                larger = btnTo[0];
                smaller = btnFrom[0];
            }
            for (int i = smaller; i <= larger; i++) {
                myBtn = Grid5.buttons[i][col];
                if(mode==1){
                    myBtn.setBackground(SwitchColor.activeChoice(myBtn));
                } else{
                    myBtn.setBackground(SwitchColor.deactiveChoice(myBtn));
                }
            }
        }
    }