@Override
    public void actionPerformed(ActionEvent e) {
	if(e.getID() == ActionEvent.ACTION_PERFORMED) {
	    GuiButton button = (GuiButton)e.getSource();
	    if(button == newGame)
		Client.instance.setGuiScreen(new GuiSelectServer(this));
	    else if(button == test)
		Client.instance.activateMap(true);
	    else if(button == options)
		Client.instance.setGuiScreen(new GuiOptions(this));
	    else if(button == credits)
		Client.instance.setGuiScreen(new GuiCredits(this));
	    else if(button == exit)
		Client.instance.stop();
	}
    }