public void playGameAsPlayer(ArrayList<User> gameUsers, SearchGamesTask jgt)
			throws InvalidSubscriptionException, InvalidKeySpecException,
			NoSuchAlgorithmException, NoSuchPaddingException,
			NoSuchProviderException, InterruptedException, IOException {

		RSAService rsaService = comServ.waitPQ();
		gameUser.setDecryptionKey(rsaService.getD());

		// if more types of poker were added this would be a parameter and
		// SwingUI would instantiate it
		GamePlay thGamePlay = new TexasHoldEmGamePlay();
		thGamePlay.init();

		try {
			thGamePlay.playerGamePlay(rsaService, comServ, gameUser, gameUsers,
					sig, jgt);
		} catch (Exception e) {
			System.err.println("Error in player gameplay.");
			System.exit(0);
		}

		comServ.shutdown();
		return;

	}