Update schedule.c

added play_lottery function