Finished the fcfs, but still some bugs