start(level){
		if(!user){
			sceneManager.popModal();
			sceneManager.pushModal(loginScene, "Login to save level.");
			return;
		}
		if(!isPlayable()){
			sceneManager.popModal();
			sceneManager.pushModal(messageScene, "Error", 
				`Unable to save level because it is not playable, to be playable the level must have one assesmbly 
				area (blue box), one goal area (orange box) and one or more targets (orange objects, usually circle).`
			);
			return;
		}
		if(level){
			this.header.textContent = "Save Solution";
		} else {
			this.header.textContent = "Save Level";
		}
		this.level = level;
		this.ui.style.display = "block";
	}
// need level or just check if sandbox? solution if not sandbox mode
need level or just check if sandbox. solution if not sandbox mode
need level or just check if sandbox . solution if not sandbox mode
start(level){
		if(!user){
			sceneManager.popModal();
			sceneManager.pushModal(loginScene, "Login to save level.");
			return;
		}
		if(!isPlayable()){
			sceneManager.popModal();
			sceneManager.pushModal(messageScene, "Error", 
				`Unable to save level because it is not playable, to be playable the level must have one assesmbly 
				area (blue box), one goal area (orange box) and one or more targets (orange objects, usually circle).`
			);
			return;
		}
		if(level){
			this.header.textContent = "Save Solution";
		} else {
			this.header.textContent = "Save Level";
		}
		this.level = level;
		this.ui.style.display = "block";
	}
start ( level ) { if ( ! user ) { sceneManager . popModal ( ) ; sceneManager . pushModal ( loginScene , "Login to save level." ) ; return ; } if ( ! isPlayable ( ) ) { sceneManager . popModal ( ) ; sceneManager . pushModal ( messageScene , "Error" , ` ` ) ; return ; } if ( level ) { this . header . textContent = "Save Solution" ; } else { this . header . textContent = "Save Level" ; } this . level = level ; this . ui . style . display = "block" ; }
need level or just check if sandbox?
need level or just check if sandbox?