private void dealWithClick(int x, int y) {
		// check which button was clicked and respond
		if (onNewPlayer(x, y)) {
			new InputPopup(ui, false);
		} else if (onLoadPlayer(x, y)) {
			new InputPopup(ui, true);
		} else if (onStartServer(x, y)) {
			startServer();
		} else if (onControls(x, y)) {
			// show a controls popup
			new ControlsPopup().showControls();
		}
	}