public void init() {
		ArrayList<Integer> positions = new ArrayList<Integer>();
		for(int i=0; i<activeBoardSize; i++) {
			for(int j=0; j<activeBoardSize;j++) {
				positions.add(i*activeBoardSize+j);
			}
		}
		Collections.shuffle(positions);
		
		staticFences.clear();
		activeFences.clear();
		mhos.clear();
		
		int i=0;
		for(; i<numMhos;i++) {
			mhos.add(new Mho(positions.get(i)/activeBoardSize + 1, positions.get(i)%activeBoardSize + 1));
		}
		
		int i0 = i;
		for(; i<numActiveFences+i0; i++) {
			activeFences.add(new Fence(positions.get(i)/activeBoardSize + 1, positions.get(i)%activeBoardSize + 1));
			
		}
		
		for(int j=0; j<boardSize-1;j ++) {
			staticFences.add(new Fence(j,0));
			staticFences.add(new Fence(j+1,boardSize-1));
			staticFences.add(new Fence(0,j+1));
			staticFences.add(new Fence(boardSize-1,j));
		}
		p1 = new Player(positions.get(i)/activeBoardSize+1, positions.get(i)%activeBoardSize+1);
	}