I'm not sure why this is giving me this error. It appears that it should work but doesn't. Here's the link https://repl.it/@JAGMAN248/Roll-the-Dice. Thanks for your help!
Also later on you have some lines like dialog("You won 5x your bet!") :which is wrong (shouldn't have colon)