public void displayEndScreen(){
		mainFrame.dispatchEvent(new WindowEvent(mainFrame, WindowEvent.WINDOW_CLOSING));
		mainFrame=new JFrame("Thank You");
		mainFrame.setSize(500,500);
        mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        
		mainFrame.add(new JLabel(new ImageIcon(this.getClass().getClassLoader().getResource("images/EndMessage.png"))));
		Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
		mainFrame.setLocation((int)(screenSize.getWidth()/2 - mainFrame.getSize().getWidth()/2), (int)(screenSize.getHeight()/2 - mainFrame.getSize().getHeight()/2));
		mainFrame.setVisible(true);
		
	}