Add level end condition