Rename flag to lastHomeworkFound