reorganized simulateDay