public void click(Point p) {
		for (Map.Entry<String, IButton> entry : buttons.entrySet())
			if (entry.getValue().isClicked(p.x, p.y)) {
				if (entry.getKey().equals("Game")) {
					try {
						MegaControlerSingleton.getInstance().getStateView().setState(new Game());
					} catch (IOException e1) {
						e1.printStackTrace();
					}
				} else if (entry.getKey().equals("Options")) {
					Frame frame = new Frame("Candy Crush MEGAAA Option");
					frame.addWindowListener(new WindowAdapter() {
						public void windowClosing(WindowEvent event) {
							frame.setVisible(false);
						}
					});
					frame.add(new OptionsSwing(new User(), frame));
					frame.pack();
					frame.setVisible(true);

				} else if (entry.getKey().equals("Scores")) {
					try {
						MegaControlerSingleton.getInstance().getStateView().setState(new Score());
					} catch (IOException e1) {
						e1.printStackTrace();
					}
				} else if (entry.getKey().equals("Aide")) {
					try {
						MegaControlerSingleton.getInstance().getStateView().setState(new Aide());
					} catch (IOException e1) {
						e1.printStackTrace();
					}
				}
			}
	}