public void init(int nplayers, int[] pref) {
    	this.nplayer=nplayers;
    	this.pref=pref;
    	this.position=this.getIndex();// position start from 0
    	this.record = new int[2*nplayer];
    	if(nplayers-position<=9)
        	magic=magic_table[nplayers-position];
        else
        	magic=(int) Math.round(0.369*(nplayers-position) );
    	info.clear();
    	bowlIds.clear();
    }