bug fix, manage score, endtime etc for homework