@Override
	public void actionPerformed(ActionEvent arg0) {
		String command = arg0.getActionCommand();
		String JSONtext = "";
		switch (command) {
		case "startButton":
		if(startable){
			try {
				JSONtext = enc.encode(new StartedMessage());

				sendMessage(JSONtext);
				
			} catch (JSONException e1) {
				e1.printStackTrace();
			}
			
			
		} break;
		
		case "kick":
			try {
				JSONtext = enc.encode(new KickMessage());
				sendMessage(JSONtext);
			} catch (JSONException e1) {
				e1.printStackTrace();
			
			}break;
			
		
			
		
			
			
		
			
		default:
			break;
		
		
	 }

	}