Formulas for intelligent gambling: a thorough psychological approach