public int[] getActivePillsIndices()
	{
		int[] indices=new int[pills.cardinality()];
		
		int index=0;
		
		for(int i=0;i<currentMaze.pillIndices.length;i++)
			if(pills.get(i))
				indices[index++]=currentMaze.pillIndices[i];		
			
		return indices;
	}