package controller;

import javax.swing.JOptionPane;

import model.PlayerModel;
import boundary.PlayerApplication;
import boundary.PlayerEndLevelView;

public class PlayerEndLevelCtrl {

	PlayerApplication app;
	PlayerModel model;
	
	public PlayerEndLevelCtrl(PlayerApplication app, PlayerModel model) {
		this.app = app;
		this.model = model;
	}
	
	public void endLevel() {
		JOptionPane.showMessageDialog(new PlayerEndLevelView(app, model), "Level Complete!");
	}
}

@@ -370,16 +370,395 @@
 l() %7B%0A%09%09
+String endMsg = %22You won! Good job.%22;%0A%09%09if(model.level.currentScore %3C model.level.rules.scoreThresholds%5B0%5D)%0A%09%09%09endMsg = %22You didn't pass!%22;%0A%09%09else if(model.level.currentScore %3C model.level.rules.scoreThresholds%5B1%5D)%0A%09%09%09endMsg += %22 1 Star%22;%0A%09%09else if(model.level.currentScore %3C model.level.rules.scoreThresholds%5B2%5D)%0A%09%09%09endMsg += %22 2 Star!%22;%0A%09%09else%0A%09%09%09endMsg += %22 3 Star!!%22;%0A%09%09%0A%09%09//
 JOptionP
@@ -779,16 +779,41 @@
 eDialog(
+null, %22Level Complete!%22, 
 new Play
@@ -838,35 +838,202 @@
 , model)
-, %22Level Complete!%22
+);%0A%09%09JOptionPane jop = new JOptionPane();%0A%09%09String%5B%5D s = %7B %22Level Select%22 %7D;%0A%09%09jop.setOptions(s);%0A%09%09JOptionPane.showMessageDialog(jop, endMsg, %22Level Finished%22, JOptionPane.PLAIN_MESSAGE
 );%0A%09%7D%0A%7D%0A

Add appropriate message to the end level message