function getProfit(uint8 _probability, uint256 _betValue) view internal returns (uint256){
        uint256 tempProfit = ((_betValue * (100 - _probability) / _probability + _betValue) * (1000 - houseEdge) / 1000) - _betValue;
        
        if(tempProfit > maxProfit) tempProfit = maxProfit;
        return tempProfit;
    }