I have two problems occurring in this level.
I get the error message “cannot read property ´pos´ of null”. This problem only occurred after I went out of the game and bought a new pair of faster boots.
My hero seems to be building decoys at random, not when he reaches 25 gold.
[edit: removed code, since problem was self solved.]