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.