Change State

You aren't setting lastButtonState after you read the new value.