Flat Magnetic Squares