public Process nextProcess(){
		processes.get(processes.size() - 1).setState(Process.State.WAITING);
		Process next;
		Process old = processes.get(the_current_process);
		if(processes.get(the_current_process).getState() == Process.State.RUNNING) {
			processes.get(the_current_process).setState(Process.State.WAITING);        
		}
		switch (my_state) {
		case ROUND_ROBIN:
			next =  nextRobin();
			break;
		case LOTTO:
			next =  nextLotto();
			break;
		case PRIORITY:
			next =  nextPriority();
			break;
		default:
			next = nextRobin();
			break;
		}   
		if(old.getState() != Process.State.BLOCKED){
			old.setState(Process.State.WAITING);
		}
		next.setState(Process.State.RUNNING);
		System.out.println("Now running process: " + next.getId());
		for(int i = 0; i < processes.size(); i++){
			System.out.println("Process id: " + processes.get(i) + " State: " + processes.get(i).getState());
		}
		
		return next;

	}