Find the square's center by connecting the opposing corners
Swing an arc from each corner with the divider calibrated to the square's centerpoint
Connect each arc's intersection with the square to complete the octagon