private int searchNextExecutableTaskAtTime() {
		for(int i = 0; i < taskPool.length; i++) {
			if(!finished[i] && taskPool[i].arrivalTime <= (time + 1) && taskPool[i].burstTime <= taskPool[currentIndex].burstTime) {
				if(i != currentIndex) {
					if(ganttTemp.beginningTime != (time + 1)) {
						ganttTemp.endingTime = time+1;
						ganttTemp.processID = "Process " + taskPool[currentIndex].getId();
						ganttChart.add(ganttTemp);

						System.out.println("Changed : " + ganttTemp);

						ganttTemp = new GanttChartHolder();
						ganttTemp.beginningTime = time+1;
					}
				}

				return i;
			}
		}
		return -1;
	}