Im trying to do a code where there parameters are p=probability to win and kapital=money I play wtih. Each time I play and win I earn 1 dollar, if I loose I will loose 1 dollar.