public void setCode(int code) {

        if(code <= MAX_PLAYER_NUM) {
            this.owner = code;
            this.status = FREE_OPT;
            
        } else if(code <= MAX_PLAYER_NUM*2) {
            this.owner = code - MAX_PLAYER_NUM;
            this.status = SURROUNDED_OPT;
            
        } else if(code == MAX_PLAYER_NUM*2 + 1) {
            this.owner = WITHOUT_OWNER_OPT;
            this.status = SURROUNDED_OPT;
            
        } else {
            this.owner = WITHOUT_OWNER_OPT;
            this.status = FREE_OPT;
        }
    }