Off by one error on perfect squares. :/