original rewrite commit

Gamble Script (Actions addition)