function playerRollDice(uint rollUnder) public 
        payable
        gameIsActive
        betIsValid(msg.value, rollUnder)
	{       

         
        
        bytes32 rngId = oraclize_query("nested", "[URL] ['json(https:
        	    
        
		playerBetId[rngId] = rngId;
        
		playerNumber[rngId] = rollUnder;
        
        playerBetValue[rngId] = msg.value;
        
        playerAddress[rngId] = msg.sender;
                             
        playerProfit[rngId] = ((((msg.value * (100-(safeSub(rollUnder,1)))) / (safeSub(rollUnder,1))+msg.value))*houseEdge/houseEdgeDivisor)-msg.value;        
        
        maxPendingPayouts = safeAdd(maxPendingPayouts, playerProfit[rngId]);
        
        if(maxPendingPayouts >= contractBalance) throw;
        
        LogBet(playerBetId[rngId], playerAddress[rngId], safeAdd(playerBetValue[rngId], playerProfit[rngId]), playerProfit[rngId], playerBetValue[rngId], playerNumber[rngId]);          

    }