Fix a Lua error in the cake shop (#26).

A variable with local scope only exists after the local keyword.