Created function to advance the day