public void setLisState(int num){
        if(num == 1){
            currentState = LisState.LINE;
        }else if(num == 2){
            currentState = LisState.DRAW;
        }else if(num == 3){
            currentState = LisState.TRIANGLE;
        }else if(num == 4){
            currentState = LisState.ERASE;
        }else if(num == 5){
            currentState = LisState.CIRCLE;
        }else if(num == 6){
            currentState = LisState.SQUARE;
        }else if(num == 7){
            currentState = LisState.TEXT;
        }else if(num == 8){
            currentState = LisState.MAGIC;
        }else{
            currentState = LisState.NONE;
        }
    }