Add a few local declarations

I'm using strict in my game and it alerted me of a few missing locals.
Merge pull request #8 from TomK32/patch-1

Add a few local declarations per @TomK32