@Override
	public StageFlipper init(StageFlipper nothing) {
		SG = new SnakeGUI();
		SG.render();
		SG.achtungPanel.addKeyListener(this);
		SG.startGame.addActionListener(this);
		SG.startGame.addKeyListener(this);
		SG.leaveGame.addActionListener(this);
		
		while (loop) {
			try {
				String mess = receiveMessage();
				int id = retrieveId(mess);
				decodeAndRender(id, mess);

			} catch (IOException | JSONException e) {
				e.printStackTrace();
			}
		}

		SG.window.setVisible(false);
		return saveMsg;
	}