Fix snake app hangs due to integer wrap.

Previous fix missed that the timeout variable needs signed
otherwise it wraps to a large positive integer.
Merge pull request #122 from jburgess777/snake-hangs2

Fix snake app hangs due to integer wrap.