public GameEnding(boolean youWin,final Game game){
		setSize(WIDTH,HEIGHT);
		setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
		setLocationRelativeTo(null);
		setLayout(new BorderLayout());
		JLabel label= new JLabel(youWin? victory :defeat);
		add(label,BorderLayout.CENTER);
		JPanel panel = new JPanel();
		panel.setLayout(new FlowLayout());
		JButton quit = new JButton(" Quit ");
		this.setResizable(false);
		quit.addActionListener(new ActionListener() {

			@Override
			public void actionPerformed(ActionEvent e) {
				System.exit(0);
			}

		});

		JButton restart = new JButton("Restart");
		restart.addActionListener(new ActionListener() {

			@Override
			public void actionPerformed(ActionEvent e) {
				game.restart();
				dispose();
			}

		});

		panel.add(quit);
		panel.add(restart);
		add(panel,BorderLayout.SOUTH);

	}