Does handStateTimer need to be a global? If so reference it with the two colons preceding it, otherwise put it in the main function only.