Update schedule.c

modified some functions to add partial ticket implementation. the kernel is now nonfunctional at this point.