Changes according Doug review: unused functions removed, current time calculation fixed, playState test added