added checkpoint after every level