The Rescaled Pólya Urn: local reinforcement and chi-squared goodness of fit test