private void prioritizeVortexes(int beginning) {
		this.vortexHeap = new MinimumHeap();
		
		for (VortexSpace vortexSpace : vortexSpaces) {
			int distance = -1;
			if (vortexSpace.getId() == beginning) {
				distance = 0;
			}
			else {
				distance = Integer.MAX_VALUE/3;
			}
			
			Vortex vortex = new Vortex(vortexSpace, distance);
			vortexHeap.add(vortex);
			while (vortexSpace.getId() >= vortexes.length) {
				doubleSize();
			}
			vortexes[vortexSpace.getId()] = vortex;
			
			//TODO ending
		}
	}