public synchronized String setParameters(String KeyValuePairs) {
		if (game == null) {
			game = BriscaGameFactory.instantiante(
					BriscaGameFactory.VANILLA_BRISCA_GAME, null);
		}

		if (!game.initialParametersSet())
			isWaitingForUsers = true;

		if (KeyValuePairs.contains(BriscaGameFactory.TOURNAMENT_GAME + "=true")) {
			Object[] parameters = { game };
			game = BriscaGameFactory.instantiante(
					BriscaGameFactory.TOURNAMENT_GAME, parameters);
		}
		if (KeyValuePairs.contains(GameSocketServer.TIMED_KEY)) {
			// TODO make time out on turns
			isTimed = Boolean.parseBoolean(((KeyValuePairs
					.split(GameSocketServer.TIMED_KEY)[1]).split(",")[0]));
		}
		return game.addParameters(KeyValuePairs);
	}