initial magic numbers implementation -- only works for sides of odd length