public StageFlipper runTicTac() {
		if(saveMsg != null) {
			@SuppressWarnings("unused")
			StageFlipper startup = saveMsg;
			//Use the message when starting gameroom
			saveMsg = null;
		}
		while(loop) {
			try {
				String mess = receiveMessage();

				int id = retrieveId(mess);
				decodeAndRender(id, mess);

			} catch (IOException | JSONException e) {
				e.printStackTrace();
			}
		}
		tg.window.setVisible(false);
		return saveMsg;
	}