public void doBetting(GameVars gv, CustomPoker cp)
	{
		boolean ripe = false;
		int idx = betOffset;
		int lastPlayerToRaise = -1;
		while (!ripe)
		{
			idx = idx%players.size();
			if (idx != -1 && idx == lastPlayerToRaise)
			{
				ripe = true;
				break;
			}
			if (lastPlayerToRaise == -1)
				lastPlayerToRaise = idx;
			int playerNum = players.get(idx);
			boolean playerFolded = false;
			for (int i = 0; i < foldedPlayers.size(); ++i)
				if (playerNum == foldedPlayers.get(i))
					playerFolded = true;
			if (!playerFolded)
			{
				int choice = cp.whatAction(gv, this, playerNum);
				if (choice == CustomPoker.RAISE)
					lastPlayerToRaise = idx;
			}
			++idx;
		}
		removeFoldedPlayers();
		System.out.println("Pot's ripe! "+totalMoney+" gold");
	}