You're working within Euclidean geometry. Space is discrete, not continuous, so there are no "squares" that have a distance of 1 unit. Create a square on your computer screen. You'll see it's composed of a countable number of units (pixels).