added finish flag on end of level