added level completion check and debug key for clearing the level.